examples/rr/double_dispatching_example.rb in rr-0.1.7 vs examples/rr/double_dispatching_example.rb in rr-0.1.8
- old
+ new
@@ -95,10 +95,13 @@
scenario_2 = @space.create_scenario(@double)
scenario_2.with(3)
proc {@object.foobar(:arg1, :arg2)}.should raise_error(
Errors::ScenarioNotFoundError,
- "No scenario for foobar(:arg1, :arg2)"
+ "No scenario for foobar(:arg1, :arg2)\n" <<
+ "in\n" <<
+ "- foobar(1, 2)\n" <<
+ "- foobar(3)"
)
end
end
describe Double, " method dispatching where there are scenarios with duplicate Exact Match ArgumentExpectations" do