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 6e52a08 commit 513ccc1Copy full SHA for 513ccc1
elasticsearch-model/test/integration/active_record_basic_test.rb
@@ -111,6 +111,7 @@ def as_indexed_json(options = {})
111
response = Article.search query: { match: { title: 'code' }}, sort: { clicks: :desc }
112
113
assert_equal response.records[0].clicks, 3
114
+ assert_equal response.records[0], response.records.first
115
assert_equal response.records[1].clicks, 2
116
117
response.records.each_with_hit do |r, h|
0 commit comments