Skip to content

Commit 9a11a6b

Browse files
authored
MONGOID-5412 Fix JRuby 9.2/9.3 tests (#5350)
* MONGOID-5270 use eq instead of be * add retry test to flaky mongoid test
1 parent 790a5ce commit 9a11a6b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

spec/mongoid/clients/options_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,7 @@
413413
end
414414

415415
context 'when the options create a new cluster' do
416+
retry_test
416417
# This test fails on sharded topologies in Evergreen but not locally
417418
require_topology :single, :replica_set
418419

spec/mongoid/config_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@
204204

205205
Mongoid.configure { |config| config.load_configuration(configuration) }
206206

207-
expect(Mongoid::Config.discriminator_key).to be("_type")
207+
expect(Mongoid::Config.discriminator_key).to eq("_type")
208208
end
209209
end
210210

@@ -215,11 +215,11 @@
215215

216216
Mongoid.configure { |config| config.load_configuration(configuration) }
217217

218-
expect(Mongoid::Config.discriminator_key).to be("test")
218+
expect(Mongoid::Config.discriminator_key).to eq("test")
219219
end
220220

221221
it 'is set globally' do
222-
expect(Mongoid.discriminator_key).to be("test")
222+
expect(Mongoid.discriminator_key).to eq("test")
223223
end
224224
end
225225
end
@@ -260,7 +260,7 @@
260260
let(:conf) { CONFIG }
261261

262262
it "it is set to its default" do
263-
expect(Mongoid.send(option)).to be(default)
263+
expect(Mongoid.send(option)).to eq(default)
264264
end
265265
end
266266
end

0 commit comments

Comments
 (0)