Skip to content

Commit f9bcc23

Browse files
committedApr 16, 2024
Updates mongoid spec
1 parent aa0dfaa commit f9bcc23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎elasticsearch-model/spec/elasticsearch/model/adapters/mongoid_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ class DummyClassForMongoid; end
174174
context 'query criteria specified as a hash' do
175175

176176
before do
177-
expect(relation).to receive(:where).with(color: 'red').and_return(relation)
177+
expect(relation).to receive(:where).with({ color: 'red' }).and_return(relation)
178178
end
179179

180180
let(:query) do

0 commit comments

Comments
 (0)
Please sign in to comment.