Skip to content

Commit 2b4a973

Browse files
committed
update bin/test scripts to prevent double runs.
The test runner was updated to make use of autorun. This caused the `bin/test` scripts to run Minitest twice.
1 parent bb2a832 commit 2b4a973

File tree

7 files changed

+2
-12
lines changed

7 files changed

+2
-12
lines changed

actionmailer/bin/test

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,3 @@
22

33
COMPONENT_ROOT = File.expand_path("..", __dir__)
44
require File.expand_path("../tools/test", COMPONENT_ROOT)
5-
6-
exit Minitest.run(ARGV)

actionpack/bin/test

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,3 @@
22

33
COMPONENT_ROOT = File.expand_path("..", __dir__)
44
require File.expand_path("../tools/test", COMPONENT_ROOT)
5-
6-
exit Minitest.run(ARGV)

actionview/bin/test

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,3 @@
22

33
COMPONENT_ROOT = File.expand_path("..", __dir__)
44
require File.expand_path("../tools/test", COMPONENT_ROOT)
5-
6-
exit Minitest.run(ARGV)

activemodel/bin/test

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,3 @@
22

33
COMPONENT_ROOT = File.expand_path("..", __dir__)
44
require File.expand_path("../tools/test", COMPONENT_ROOT)
5-
6-
exit Minitest.run(ARGV)

activerecord/bin/test

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,3 @@ module Minitest
1717
end
1818

1919
Minitest.extensions.unshift "active_record"
20-
21-
exit Minitest.run(ARGV)

activesupport/bin/test

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,3 @@
22

33
COMPONENT_ROOT = File.expand_path("..", __dir__)
44
require File.expand_path("../tools/test", COMPONENT_ROOT)
5-
6-
exit Minitest.run(ARGV)

tools/test.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ def self.root
1313
end
1414

1515
Rails::TestUnitReporter.executable = "bin/test"
16+
Minitest.run_via[:rails] = true
17+
require "active_support/testing/autorun"

0 commit comments

Comments
 (0)