test/index_test.rb in searchkick-0.5.3 vs test/index_test.rb in searchkick-0.6.0

- old
+ new

@@ -1,13 +1,16 @@ require_relative "test_helper" class TestIndex < Minitest::Unit::TestCase def test_clean_indices - old_index = Tire::Index.new("products_test_20130801000000000") - different_index = Tire::Index.new("items_test_20130801000000000") + old_index = Searchkick::Index.new("products_test_20130801000000000") + different_index = Searchkick::Index.new("items_test_20130801000000000") + old_index.delete if old_index.exists? + different_index.delete if different_index.exists? + # create indexes old_index.create different_index.create Product.clean_indices @@ -16,10 +19,10 @@ assert different_index.exists? assert !old_index.exists? end def test_clean_indices_old_format - old_index = Tire::Index.new("products_test_20130801000000") + old_index = Searchkick::Index.new("products_test_20130801000000") old_index.create Product.clean_indices assert !old_index.exists?