examples/rr/double/double_example.rb in rr-0.3.10 vs examples/rr/double/double_example.rb in rr-0.3.11
- old
+ new
@@ -41,12 +41,12 @@
@method_name = :foobar
@object.methods.should_not include(@method_name.to_s)
@double = Double.new(@space, @object, @method_name)
end
- it "has a nil original_method" do
- @double.original_method.should be_nil
+ it "object does not have original method" do
+ @double.object_has_original_method?.should be_false
end
end
describe Double, "#initialize where method exists on object" do
it_should_behave_like "RR::Double"
@@ -57,10 +57,10 @@
@method_name = :to_s
@object.methods.should include(@method_name.to_s)
@double = Double.new(@space, @object, @method_name)
end
- it "has a nil original_method" do
- @double.original_method.should == @object.method(@method_name)
+ it "has a original_method" do
+ @double.object_has_original_method?.should be_true
end
end
end