211
211
# LAK:NOTE For all of these tests, we convert back to the edge so we can
212
212
# trap the actual data structure then.
213
213
it "should pass the source in as the first argument" do
217
217
it "should pass the target in as the second argument" do
221
221
it "should pass the event as an argument if it's provided" do
222
Puppet::Relationship.from_pson("source" => "mysource", "target" => "mytarget", "event" => "myevent", "callback" => "eh").event.should == "myevent"
222
Puppet::Relationship.from_data_hash("source" => "mysource", "target" => "mytarget", "event" => "myevent", "callback" => "eh").event.should == "myevent"
225
225
it "should pass the callback as an argument if it's provided" do
226
Puppet::Relationship.from_pson("source" => "mysource", "target" => "mytarget", "callback" => "mycallback").callback.should == "mycallback"
226
Puppet::Relationship.from_data_hash("source" => "mysource", "target" => "mytarget", "callback" => "mycallback").callback.should == "mycallback"