examples/rr/space_verify_example.rb in rr-0.1.6 vs examples/rr/space_verify_example.rb in rr-0.1.7

- old
+ new

@@ -1,7 +1,6 @@ -dir = File.dirname(__FILE__) -require "#{dir}/../example_helper" +require "examples/example_helper" module RR describe Space, "#verify_doubles" do it_should_behave_like "RR::Space" @@ -108,22 +107,22 @@ it "keeps the scenario when times called is not verified" do scenario = @space.create_scenario(@double) @space.register_ordered_scenario(scenario) scenario.twice - scenario.should_not be_times_called_verified + scenario.should be_attempt @space.verify_ordered_scenario(scenario) @space.ordered_scenarios.should include(scenario) end - it "removes the scenario when times called in verified" do + it "removes the scenario when times called expectation should no longer be attempted" do scenario = @space.create_scenario(@double) @space.register_ordered_scenario(scenario) scenario.with(1).once @object.foobar(1) - scenario.should be_times_called_verified + scenario.should_not be_attempt @space.verify_ordered_scenario(scenario) @space.ordered_scenarios.should_not include(scenario) end end \ No newline at end of file