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:
commit
805bd7a81a
1 changed files with 2 additions and 1 deletions
|
@ -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"]
|
||||
|
|
Loading…
Reference in a new issue