spec/mongoid/contextual/atomic_spec.rb in mongoid-5.0.0 vs spec/mongoid/contextual/atomic_spec.rb in mongoid-5.0.1
- old
+ new
@@ -252,11 +252,11 @@
it "pulls when the value is found" do
expect(depeche_mode.reload.members).to eq([ "Dave" ])
end
- it "does not error on non existant fields" do
+ it "does not error on non existent fields" do
expect(smiths.reload.members).to be_nil
end
end
describe "#pull_all" do
@@ -283,11 +283,11 @@
it "pulls when the values are found" do
expect(depeche_mode.reload.members).to eq([ "Fletch" ])
end
- it "does not error on non existant fields" do
+ it "does not error on non existent fields" do
expect(smiths.reload.members).to be_nil
end
end
describe "#push" do
@@ -314,11 +314,11 @@
it "pushes the value to existing arrays" do
expect(depeche_mode.reload.members).to eq([ "Dave", "Alan" ])
end
- it "pushes to non existant fields" do
+ it "pushes to non existent fields" do
expect(smiths.reload.members).to eq([ "Alan" ])
end
end
describe "#push_all" do
@@ -345,11 +345,11 @@
it "pushes the values to existing arrays" do
expect(depeche_mode.reload.members).to eq([ "Dave", "Alan", "Fletch" ])
end
- it "pushes to non existant fields" do
+ it "pushes to non existent fields" do
expect(smiths.reload.members).to eq([ "Alan", "Fletch" ])
end
end
describe "#rename" do
@@ -376,11 +376,11 @@
it "renames existing fields" do
expect(depeche_mode.reload.artists).to eq([ "Dave" ])
end
- it "does not rename non existant fields" do
+ it "does not rename non existent fields" do
expect(smiths.reload).to_not respond_to(:artists)
end
end
describe "#set" do
@@ -407,10 +407,10 @@
it "sets existing fields" do
expect(depeche_mode.reload.name).to eq("Recoil")
end
- it "sets non existant fields" do
+ it "sets non existent fields" do
expect(smiths.reload.name).to eq("Recoil")
end
end
describe "#unset" do