rbx test/support require path
This commit is contained in:
Родитель
ceb9c87a3c
Коммит
0e8e2600c1
|
@ -4,10 +4,10 @@ Minitest::Reporters.use! Minitest::Reporters::SpecReporter.new
|
|||
|
||||
require 'active_support/core_ext/kernel/reporting'
|
||||
|
||||
Dir.chdir 'test' do
|
||||
Dir['support/**/*.rb'].each do |file|
|
||||
require file[0..-4] # strip .rb suffix
|
||||
end
|
||||
Dir['test/support/**/*.rb'].each do |file|
|
||||
# strip ^test/ and .rb$
|
||||
file = file[5..-4]
|
||||
require_relative File.join('.', file)
|
||||
end
|
||||
|
||||
GEM_PATH = File.expand_path('../', File.dirname(__FILE__))
|
||||
|
|
Загрузка…
Ссылка в новой задаче