Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add this rule to run common tests and specifics ones from adapters dir

  • Loading branch information...
commit ab96c71a52b7b950fba6090e6a091a1f951eaa44 1 parent 4f74d44
@spastorino spastorino authored jeremy committed
Showing with 3 additions and 1 deletion.
  1. +3 −1 activerecord/Rakefile
View
4 activerecord/Rakefile
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.