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:
parent
5d934caabb
commit
cf7ba1fbbd
1 changed files with 1 additions and 1 deletions
|
@ -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'
|
||||||
|
|
Loading…
Reference in a new issue