examples/rr/double_verify_example.rb in rr-0.1.7 vs examples/rr/double_verify_example.rb in rr-0.1.8

- old
+ new

@@ -9,10 +9,10 @@ @object.methods.should_not include(@method_name.to_s) @double = @space.create_double(@object, @method_name) end it "verifies each scenario was met" do - scenario = Scenario.new(@space) + scenario = Scenario.new(@space, @double) @double.register_scenario scenario scenario.with(1).once.returns {nil} proc {@double.verify}.should raise_error(Errors::TimesCalledError) @object.foobar(1)