examples/rr/extensions/double_methods_example.rb in rr-0.1.7 vs examples/rr/extensions/double_methods_example.rb in rr-0.1.8

- old
+ new

@@ -23,11 +23,11 @@ end end scenario = creator.foobar(1, 2) {:baz} scenario.times_called_expectation.matcher.should == TimesCalledMatchers::IntegerMatcher.new(1) - scenario.argument_expectation.class.should == RR::Expectations::ArgumentEqualityError + scenario.argument_expectation.class.should == RR::Expectations::ArgumentEqualityExpectation scenario.argument_expectation.expected_arguments.should == [1, 2] @subject.foobar(1, 2).should == :baz end end @@ -53,11 +53,11 @@ end end scenario = creator.foobar(1, 2) {:baz} scenario.times_called_expectation.should == nil - scenario.argument_expectation.class.should == RR::Expectations::ArgumentEqualityError + scenario.argument_expectation.class.should == RR::Expectations::ArgumentEqualityExpectation @subject.foobar(1, 2).should == :baz end end describe DoubleMethods, "#probe" do @@ -81,11 +81,11 @@ end end scenario = creator.foobar(1, 2) scenario.times_called_expectation.times.should == 1 - scenario.argument_expectation.class.should == RR::Expectations::ArgumentEqualityError + scenario.argument_expectation.class.should == RR::Expectations::ArgumentEqualityExpectation scenario.argument_expectation.expected_arguments.should == [1, 2] @subject.foobar(1, 2).should == :original_value end end @@ -119,10 +119,10 @@ end end scenario = creator.foobar(1, 2) scenario.times_called_expectation.matcher.should == TimesCalledMatchers::IntegerMatcher.new(0) - scenario.argument_expectation.class.should == RR::Expectations::ArgumentEqualityError + scenario.argument_expectation.class.should == RR::Expectations::ArgumentEqualityExpectation scenario.argument_expectation.expected_arguments.should == [1, 2] end end end end