spec/bogus/overwrites_methods_spec.rb in bogus-0.0.4 vs spec/bogus/overwrites_methods_spec.rb in bogus-0.1.0

- old
+ new

@@ -22,11 +22,11 @@ before do overwriter.overwrite(object, :greet) end it "does not change the method signature" do - object.greet("John").should == object + object.method(:greet).arity.should == 1 end it "does not change the method signature" do expect { object.greet("John", "Paul") @@ -73,10 +73,10 @@ before do overwriter.overwrite(object, :greet) end it "can overwrite the non-existent methods" do - object.greet.should equal(object) + object.methods.should include(:greet) end it "can be reset back to the original state" do overwriter.overwrite(object, :greet) overwriter.overwrite(object, :greet)