spec/bogus/fakes/makes_ducks_spec.rb in bogus-0.1.4 vs spec/bogus/fakes/makes_ducks_spec.rb in bogus-0.1.5

- old
+ new

@@ -38,11 +38,11 @@ subject { duck } it { should respond_to(:foo) } it "should have arity -3 for foo" do - duck.method(:foo).arity.should == -3 + expect(duck.method(:foo).arity).to eq -3 end it { should_not respond_to(:bar) } it { should_not respond_to(:baz) } end @@ -74,14 +74,14 @@ object.extend duck object end it "copies class methods" do - duck.should respond_to(:enabled?) + expect(duck).to respond_to(:enabled?) end it "copies instance methods" do - duck_instance.should respond_to(:enabled?) + expect(duck_instance).to respond_to(:enabled?) end end end end