Skip to content

Commit

Permalink
make work bin/test scripts with line filter
Browse files Browse the repository at this point in the history
`Rails::LineFiltering` is not automatically loaded, need to load it explicitly.
Ref: 797f1dd, b6f935b
  • Loading branch information
y-yagi committed Dec 17, 2016
1 parent 86ca5b2 commit 2047877
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
Bundler.setup

require "rails/test_unit/minitest_plugin"
require "rails/test_unit/line_filtering"
require "active_support/test_case"

module Rails
# Necessary to get rerun-snippts working.
Expand All @@ -12,6 +14,7 @@ def self.root
end
end

ActiveSupport::TestCase.extend Rails::LineFiltering
Rails::TestUnitReporter.executable = "bin/test"
Minitest.run_via[:rails] = true
require "active_support/testing/autorun"

0 comments on commit 2047877

Please sign in to comment.