Commit 641c267037731d28d41cc252195ef1e9aa966f0a

Authored by Andrew
1 parent 9c571eaf

Fixed linter errors

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