We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a22e3fc commit ea08662Copy full SHA for ea08662
spec/elastic_apm/spies/mongo_spec.rb
@@ -52,6 +52,7 @@ module ElasticAPM
52
expect(db.instance).to eq 'elastic-apm-test'
53
expect(db.type).to eq 'mongodb'
54
expect(db.statement).to eq('{"listCollections"=>1}')
55
+ .or eq("{\"listCollections\" => 1}")
56
expect(db.user).to be nil
57
58
destination = span.context.destination
@@ -102,6 +103,7 @@ module ElasticAPM
102
103
104
105
expect(db.statement).to eq('{"find"=>"testing", "filter"=>{"a"=>"bc"}}')
106
+ .or eq("{\"find\" => \"testing\", \"filter\" => {\"a\" => \"bc\"}}")
107
108
end
109
0 commit comments