1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

no need to escape the method in a regex wrap, minitest does that for us

This commit is contained in:
Arthur Neves 2015-01-23 16:25:38 -05:00 committed by Yves Senn
parent 5d934caabb
commit cf7ba1fbbd

View file

@ -10,7 +10,7 @@ $runner = Rails::TestRunner.new(options)
def Minitest.plugin_rails_init(options) def Minitest.plugin_rails_init(options)
self.reporter << Rails::TestUnitReporter.new(options[:io], options) self.reporter << Rails::TestUnitReporter.new(options[:io], options)
if method = $runner.find_method if method = $runner.find_method
options[:filter] = "/^(#{method})$/" options[:filter] = method
end end
end end
Minitest.extensions << 'rails' Minitest.extensions << 'rails'