mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Add this rule to run common tests and specifics ones from adapters dir
This commit is contained in:
parent
4f74d449ee
commit
ab96c71a52
1 changed files with 3 additions and 1 deletions
|
@ -62,7 +62,9 @@ end
|
|||
adapter_short = adapter == 'db2' ? adapter : adapter[/^[a-z]+/]
|
||||
puts [adapter, adapter_short, connection_path].inspect
|
||||
ruby = File.join(*RbConfig::CONFIG.values_at('bindir', 'RUBY_INSTALL_NAME'))
|
||||
Dir["test/cases/**/*_test{,_#{adapter_short}}.rb"].all? do |file|
|
||||
(Dir["test/cases/**/*_test.rb"].reject {
|
||||
|x| x =~ /\/adapters\//
|
||||
} + Dir["test/cases/adapters/#{adapter_short}/**/*_test.rb"]).all? do |file|
|
||||
system(ruby, "-Ilib:test:#{connection_path}", file)
|
||||
end or raise "Failures"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue