diff --git a/tools/test.rb b/tools/test.rb index 71349a59746866d635a4b2fd8e7baec60cc5cfc8..1a1eca8f95662e201d461728f3197c30b33cf7cd 100644 --- a/tools/test.rb +++ b/tools/test.rb @@ -7,11 +7,12 @@ require "rails/test_unit/line_filtering" require "active_support/test_case" -module Rails +class << Rails # Necessary to get rerun-snippts working. - def self.root + def root @root ||= Pathname.new(COMPONENT_ROOT) end + alias __root root end ActiveSupport::TestCase.extend Rails::LineFiltering