Commit 86a3f9242084da2a0d3b375c1c81c526870dd2e3
1 parent
a52c9fd5
Exists in
master
and in
5 other branches
Restore parallel tests
Showing
3 changed files
with
6 additions
and
1 deletions
Show diff stats
Gemfile
Rakefile
@@ -7,3 +7,7 @@ Rake::TestTask.new do |t| | @@ -7,3 +7,7 @@ Rake::TestTask.new do |t| | ||
7 | t.pattern = "test/**/*_test.rb" | 7 | t.pattern = "test/**/*_test.rb" |
8 | t.warning = false | 8 | t.warning = false |
9 | end | 9 | end |
10 | + | ||
11 | +# to test in parallel, uncomment and run: | ||
12 | +# rake parallel:test | ||
13 | +# require "parallel_tests/tasks" |
test/inheritance_test.rb
@@ -13,7 +13,7 @@ class InheritanceTest < Minitest::Test | @@ -13,7 +13,7 @@ class InheritanceTest < Minitest::Test | ||
13 | end | 13 | end |
14 | 14 | ||
15 | def test_child_index_name | 15 | def test_child_index_name |
16 | - assert_equal "animals-#{Date.today.year}", Dog.searchkick_index.name | 16 | + assert_equal "animals-#{Date.today.year}#{ENV["TEST_ENV_NUMBER"]}", Dog.searchkick_index.name |
17 | end | 17 | end |
18 | 18 | ||
19 | def test_child_search | 19 | def test_child_search |