spec/mongoid/timestamps/updated_spec.rb in mongoid-4.0.0.alpha1 vs spec/mongoid/timestamps/updated_spec.rb in mongoid-4.0.0.alpha2
- old
+ new
@@ -61,10 +61,10 @@
before do
agent.new_record = false
end
it "does not run the update callbacks" do
- agent.should_receive(:updated_at=).never
+ expect(agent).to receive(:updated_at=).never
agent.save
end
end
context "when the document is created" do