Skip to content

Commit 5584010

Browse files
committed
another try
1 parent b22a370 commit 5584010

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

test/test_helper.rb

+9-9
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,6 @@
55
require "simplecov-console"
66
require "rails/version"
77

8-
if ENV["MEASURE_COVERAGE"]
9-
SimpleCov.start do
10-
command_name "minitest-rails#{Rails::VERSION::STRING}-ruby#{RUBY_VERSION}"
11-
12-
formatter SimpleCov::Formatter::Console
13-
end
14-
Rails.application.eager_load!
15-
end
16-
178
require "bundler/setup"
189
require "pathname"
1910
require "minitest/autorun"
@@ -40,6 +31,15 @@ def self.warn(message)
4031
require File.expand_path("sandbox/config/environment.rb", __dir__)
4132
require "rails/test_help"
4233

34+
if ENV["MEASURE_COVERAGE"]
35+
SimpleCov.start do
36+
command_name "minitest-rails#{Rails::VERSION::STRING}-ruby#{RUBY_VERSION}"
37+
38+
formatter SimpleCov::Formatter::Console
39+
end
40+
Rails.application.eager_load!
41+
end
42+
4343
require "capybara/cuprite"
4444

4545
# Rails registers its own driver named "cuprite" which will overwrite the one we

0 commit comments

Comments
 (0)