Commit 783671d7ca559144ec7cfe8e44af9c78149d947f
1 parent
314c0964
Exists in
master
and in
18 other branches
Removed unused methods
Showing
4 changed files
with
1 additions
and
20 deletions
Show diff stats
lib/searchkick/query.rb
test/geo_shape_test.rb
test/index_test.rb
... | ... | @@ -150,11 +150,7 @@ class IndexTest < Minitest::Test |
150 | 150 | store [{name: "Product A", text: large_value}], Region |
151 | 151 | assert_search "product", ["Product A"], {}, Region |
152 | 152 | assert_search "hello", ["Product A"], {fields: [:name, :text]}, Region |
153 | - | |
154 | - # needs fields for ES 6 | |
155 | - if elasticsearch_below60? | |
156 | - assert_search "hello", ["Product A"], {}, Region | |
157 | - end | |
153 | + assert_search "hello", ["Product A"], {}, Region | |
158 | 154 | end |
159 | 155 | |
160 | 156 | def test_very_large_value | ... | ... |
test/test_helper.rb
... | ... | @@ -38,14 +38,6 @@ end |
38 | 38 | |
39 | 39 | ActiveSupport::LogSubscriber.logger = ActiveSupport::Logger.new(STDOUT) if ENV["NOTIFICATIONS"] |
40 | 40 | |
41 | -def elasticsearch_below60? | |
42 | - Searchkick.server_below?("6.0.0-alpha1") | |
43 | -end | |
44 | - | |
45 | -def elasticsearch_below61? | |
46 | - Searchkick.server_below?("6.1.0-alpha1") | |
47 | -end | |
48 | - | |
49 | 41 | def nobrainer? |
50 | 42 | defined?(NoBrainer) |
51 | 43 | end | ... | ... |