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

Merge pull request #21789 from y-yagi/fix_warning_in_minitest_plugin

check if @rake_patterns is defined
This commit is contained in:
Kasper Timm Hansen 2015-09-28 09:21:39 +02:00
commit 805bd7a81a

View file

@ -42,7 +42,8 @@ module Minitest
ENV["RAILS_ENV"] = options[:environment] || "test"
unless run_with_autorun
::Rails::TestRequirer.require_files @rake_patterns || options[:patterns]
patterns = defined?(@rake_patterns) ? @rake_patterns : options[:patterns]
::Rails::TestRequirer.require_files(patterns)
end
unless options[:full_backtrace] || ENV["BACKTRACE"]