Skip to content

Commit ea08662

Browse files
committed
Fix failing mongo spec
1 parent a22e3fc commit ea08662

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spec/elastic_apm/spies/mongo_spec.rb

+2
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ module ElasticAPM
5252
expect(db.instance).to eq 'elastic-apm-test'
5353
expect(db.type).to eq 'mongodb'
5454
expect(db.statement).to eq('{"listCollections"=>1}')
55+
.or eq("{\"listCollections\" => 1}")
5556
expect(db.user).to be nil
5657

5758
destination = span.context.destination
@@ -102,6 +103,7 @@ module ElasticAPM
102103
expect(db.instance).to eq 'elastic-apm-test'
103104
expect(db.type).to eq 'mongodb'
104105
expect(db.statement).to eq('{"find"=>"testing", "filter"=>{"a"=>"bc"}}')
106+
.or eq("{\"find\" => \"testing\", \"filter\" => {\"a\" => \"bc\"}}")
105107
expect(db.user).to be nil
106108
end
107109
end

0 commit comments

Comments
 (0)