spec/mongoid/token_spec.rb in mongoid_token-3.0.0 vs spec/mongoid/token_spec.rb in mongoid_token-4.0.0

- old
+ new

@@ -253,10 +253,10 @@ context "when violating the other index" do it "should raise an operation failure" do duplicate_name = "Got Duped." document_class.create!(:name => duplicate_name) - expect{ document_class.create!(:name => duplicate_name) }.to raise_exception(Moped::Errors::OperationFailure) + expect{ document_class.create!(:name => duplicate_name) }.to raise_exception(Mongo::Error::OperationFailure) end end end end