spec/bogus/shadow_spec.rb in bogus-0.1.0 vs spec/bogus/shadow_spec.rb in bogus-0.1.1

- old
+ new

@@ -174,10 +174,13 @@ it "returns the default value for non-stubbed calls" do shadow.run(:foo, "a", "c").should be_a_default_return_value end it "contributes towards unsatisfied interactions" do - shadow.unsatisfied_interactions.should =~ [Bogus::Interaction.new(:foo, ["a", "b"])] + interactions = shadow.unsatisfied_interactions + interactions.should have(1).item + interactions.first.method.should == :foo + interactions.first.args.should == ["a", "b"] end it "removes the staisfied expectations from unsatisfied interactions" do shadow.mocks(:with_optional_args, 'a') shadow.run(:with_optional_args, 'a', Bogus::DefaultValue)