Commit 91a743f2378f2298fb6380fd7b25d53a451acef1

Authored by Andrew Kane
1 parent 1b48f029

Fixed test names

test/aggs_test.rb
1 1 require_relative "test_helper"
2 2  
3   -class TestAggs < Minitest::Test
  3 +class AggsTest < Minitest::Test
4 4  
5 5 def setup
6 6 super
... ...
test/autocomplete_test.rb
1 1 require_relative "test_helper"
2 2  
3   -class TestAutocomplete < Minitest::Test
  3 +class AutocompleteTest < Minitest::Test
4 4  
5 5 def test_autocomplete
6 6 store_names ["Hummus"]
... ...
test/boost_test.rb
1 1 require_relative "test_helper"
2 2  
3   -class TestBoost < Minitest::Test
  3 +class BoostTest < Minitest::Test
4 4  
5 5 # conversions
6 6  
... ...
test/facets_test.rb
1 1 require_relative "test_helper"
2 2  
3   -class TestFacets < Minitest::Test
  3 +class FacetsTest < Minitest::Test
4 4  
5 5 def setup
6 6 skip if elasticsearch2?
... ...
test/highlight_test.rb
1 1 require_relative "test_helper"
2 2  
3   -class TestHighlight < Minitest::Test
  3 +class HighlightTest < Minitest::Test
4 4  
5 5 def test_basic
6 6 store_names ["Two Door Cinema Club"]
... ...
test/index_test.rb
1 1 require_relative "test_helper"
2 2  
3   -class TestIndex < Minitest::Test
  3 +class IndexTest < Minitest::Test
4 4  
5 5 def test_clean_indices
6 6 old_index = Searchkick::Index.new("products_test_20130801000000000")
... ...
test/inheritance_test.rb
1 1 require_relative "test_helper"
2 2  
3   -class TestInheritance < Minitest::Test
  3 +class InheritanceTest < Minitest::Test
4 4  
5 5 def test_child_reindex
6 6 store_names ["Max"], Cat
... ...
test/match_test.rb
... ... @@ -2,7 +2,7 @@
2 2  
3 3 require_relative "test_helper"
4 4  
5   -class TestMatch < Minitest::Test
  5 +class MatchTest < Minitest::Test
6 6  
7 7 # exact
8 8  
... ...
test/model_test.rb
1 1 require_relative "test_helper"
2 2  
3   -class TestModel < Minitest::Test
  3 +class ModelTest < Minitest::Test
4 4  
5 5 def test_disable_callbacks_model
6 6 store_names ["product a"]
... ... @@ -20,7 +20,7 @@ class TestModel &lt; Minitest::Test
20 20 def test_disable_callbacks_global
21 21 # make sure callbacks default to on
22 22 assert Searchkick.callbacks?
23   -
  23 +
24 24 store_names ["product a"]
25 25  
26 26 Searchkick.disable_callbacks
... ...
test/query_test.rb
1 1 require_relative "test_helper"
2 2  
3   -class TestQuery < Minitest::Test
  3 +class QueryTest < Minitest::Test
4 4  
5 5 def test_basic
6 6 store_names ["Milk", "Apple"]
... ...
test/reindex_job_test.rb
1 1 require_relative "test_helper"
2 2  
3   -class TestReindexJob < Minitest::Test
  3 +class ReindexJobTest < Minitest::Test
4 4  
5 5 def setup
6 6 super
... ...
test/reindex_v2_job_test.rb
1 1 require_relative "test_helper"
2 2  
3   -class TestReindexV2Job < Minitest::Test
  3 +class ReindexV2JobTest < Minitest::Test
4 4  
5 5 def setup
6 6 skip unless defined?(ActiveJob)
... ...
test/routing_test.rb
1 1 require_relative "test_helper"
2 2  
3   -class TestRouting < Minitest::Test
  3 +class RoutingTest < Minitest::Test
4 4  
5 5 def test_routing_query
6 6 skip if elasticsearch2?
... ... @@ -13,4 +13,5 @@ class TestRouting &lt; Minitest::Test
13 13 index_options = Store.searchkick_index.index_options
14 14 assert_equal index_options[:mappings][:_default_][:_routing], {required: true, path: "name"}
15 15 end
  16 +
16 17 end
... ...
test/should_index_test.rb
1 1 require_relative "test_helper"
2 2  
3   -class TestShouldIndex < Minitest::Test
4   -
  3 +class ShouldIndexTest < Minitest::Test
5 4 def test_basic
6 5 store_names ["INDEX", "DO NOT INDEX"]
7 6 assert_search "index", ["INDEX"]
... ... @@ -30,5 +29,4 @@ class TestShouldIndex &lt; Minitest::Test
30 29 Product.searchkick_index.refresh
31 30 assert_search "index", []
32 31 end
33   -
34 32 end
... ...
test/similar_test.rb
1 1 require_relative "test_helper"
2 2  
3   -class TestSimilar < Minitest::Test
  3 +class SimilarTest < Minitest::Test
4 4  
5 5 def test_similar
6 6 store_names ["Annie's Naturals Organic Shiitake & Sesame Dressing"]
... ...
test/sql_test.rb
1 1 require_relative "test_helper"
2 2  
3   -class TestSql < Minitest::Test
  3 +class SqlTest < Minitest::Test
4 4  
5 5 def test_limit
6 6 store_names ["Product A", "Product B", "Product C", "Product D"]
... ...
test/suggest_test.rb
1 1 require_relative "test_helper"
2 2  
3   -class TestSuggest < Minitest::Test
  3 +class SuggestTest < Minitest::Test
4 4  
5 5 def test_basic
6 6 store_names ["Great White Shark", "Hammerhead Shark", "Tiger Shark"]
... ...
test/synonyms_test.rb
1 1 require_relative "test_helper"
2 2  
3   -class TestSynonyms < Minitest::Test
  3 +class SynonymsTest < Minitest::Test
4 4  
5 5 def test_bleach
6 6 store_names ["Clorox Bleach", "Kroger Bleach"]
... ...