examples/rr/double_dispatching_example.rb in rr-0.1.3 vs examples/rr/double_dispatching_example.rb in rr-0.1.4
- old
+ new
@@ -94,12 +94,12 @@
scenario_1.with(1, 2)
scenario_2 = @space.create_scenario(@double)
scenario_2.with(3)
- proc {@object.foobar(:no_matching_args)}.should raise_error(
+ proc {@object.foobar(:arg1, :arg2)}.should raise_error(
Errors::ScenarioNotFoundError,
- "No scenario for arguments [:no_matching_args]"
+ "No scenario for foobar(:arg1, :arg2)"
)
end
end
describe Double, " method dispatching where there are scenarios with duplicate Exact Match ArgumentExpectations" do