Commit 6cfa3a48caac25457350df9892a2ac644d07cf9f
1 parent
842926f6
Exists in
master
and in
21 other branches
No reason for hits to be protected
Showing
2 changed files
with
1 additions
and
3 deletions
Show diff stats
lib/searchkick/results.rb
test/sql_test.rb
... | ... | @@ -300,7 +300,7 @@ class TestSql < Minitest::Test |
300 | 300 | |
301 | 301 | def test_select_all |
302 | 302 | store [{name: "Product A", user_ids: [1, 2]}] |
303 | - hit = Product.search("product", select: true).send(:hits).first | |
303 | + hit = Product.search("product", select: true).hits.first | |
304 | 304 | assert_equal hit["_source"]["name"], "Product A" |
305 | 305 | assert_equal hit["_source"]["user_ids"], [1, 2] |
306 | 306 | end | ... | ... |