diff --git a/lib/shoulda/context.rb b/lib/shoulda/context.rb index 86f9b60..d3ad107 100644 --- a/lib/shoulda/context.rb +++ b/lib/shoulda/context.rb @@ -9,7 +9,6 @@ if defined?(Rails) require "shoulda/context/railtie" - require "shoulda/context/rails_test_unit_reporter_patch" end Shoulda::Context.configure do |config| diff --git a/lib/shoulda/context/rails_test_unit_reporter_patch.rb b/lib/shoulda/context/rails_test_unit_reporter_patch.rb deleted file mode 100644 index f45dd1e..0000000 --- a/lib/shoulda/context/rails_test_unit_reporter_patch.rb +++ /dev/null @@ -1,21 +0,0 @@ -begin - require "rails/test_unit/reporter" - - Rails::TestUnitReporter.class_eval do - # Fix #format_rerun_snippet so that it works with recent versions of Minitest. - # This was cribbed from: - # - def format_rerun_snippet(result) - location, line = - if result.respond_to?(:source_location) - result.source_location - else - result.method(result.name).source_location - end - - "#{executable} #{relative_path_for(location)}:#{line}" - end - end -rescue LoadError - # Rails::TestUnitReporter was introduced in Rails 5 -end