We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ad02bf commit 2cd25deCopy full SHA for 2cd25de
spec/mongoid/document_spec.rb
@@ -430,27 +430,6 @@ class << self; attr_accessor :name; end
430
Person.new(title: "Sir")
431
end
432
433
- describe 'id' do
434
- context 'rails < 6' do
435
- max_rails_version '5.2'
436
-
437
- it 'is a BSON::ObjectId' do
438
- id = person.as_json['_id']
439
- expect(id).to be_a(BSON::ObjectId)
440
- end
441
442
443
- context 'rails >= 6' do
444
- min_rails_version '6.0'
445
446
- it 'is a hash with $oid' do
447
448
- expect(id).to be_a(Hash)
449
- expect(id['$oid']).to be_a(String)
450
451
452
453
454
context "when no options are provided" do
455
456
it "does not apply any options" do
0 commit comments