Commit 6cfa3a48caac25457350df9892a2ac644d07cf9f

Authored by Andrew Kane
1 parent 842926f6

No reason for hits to be protected

Showing 2 changed files with 1 additions and 3 deletions   Show diff stats
lib/searchkick/results.rb
... ... @@ -127,8 +127,6 @@ module Searchkick
127 127 next_page.nil?
128 128 end
129 129  
130   - protected
131   -
132 130 def hits
133 131 @response["hits"]["hits"]
134 132 end
... ...
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
... ...