Commit 641c267037731d28d41cc252195ef1e9aa966f0a

Authored by Andrew
1 parent 9c571eaf

Fixed linter errors

lib/searchkick/record_data.rb
@@ -112,7 +112,7 @@ module Searchkick @@ -112,7 +112,7 @@ module Searchkick
112 # performance 112 # performance
113 if v.is_a?(BigDecimal) 113 if v.is_a?(BigDecimal)
114 obj[k] = v.to_f 114 obj[k] = v.to_f
115 - elsif v.is_a?(Enumerable) || 115 + elsif v.is_a?(Enumerable)
116 obj[k] = cast_big_decimal(v) 116 obj[k] = cast_big_decimal(v)
117 end 117 end
118 end 118 end
test/multi_search_test.rb
@@ -27,7 +27,7 @@ class MultiSearchTest < Minitest::Test @@ -27,7 +27,7 @@ class MultiSearchTest < Minitest::Test
27 assert_equal ["abc", "abd"], products.map(&:name) 27 assert_equal ["abc", "abd"], products.map(&:name)
28 end 28 end
29 29
30 - def test_error 30 + def test_query_error
31 products = Product.search("*", order: {bad_column: :asc}, execute: false) 31 products = Product.search("*", order: {bad_column: :asc}, execute: false)
32 Searchkick.multi_search([products]) 32 Searchkick.multi_search([products])
33 assert products.error 33 assert products.error