spec/unit/rails_spec.rb in mongo_mapper-0.14.0 vs spec/unit/rails_spec.rb in mongo_mapper-0.15.0

- old
+ new

@@ -161,11 +161,11 @@ end end it "should array representation of id if persisted" do @klass.new.tap do |doc| - expect(doc).to receive(:persisted?).and_return(true) + doc.should_receive(:persisted?).and_return(true) doc.to_param.should == doc.id.to_s end end end @@ -176,10 +176,10 @@ end end it "should array representation of id if persisted" do @klass.new.tap do |doc| - expect(doc).to receive(:persisted?).and_return(true) + doc.should_receive(:persisted?).and_return(true) doc.to_key.should == [doc.id] end end end end