diff options
author | José Valim <jose.valim@gmail.com> | 2009-06-28 19:46:34 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-06-28 19:46:34 +0200 |
commit | 9413dba432b11d86b80449ca7b959b32ecb0844c (patch) | |
tree | 13eab65aefcc7cc4550f70a29da32b560b358641 /railties/Rakefile | |
parent | 9068bc05b8c5a1f2a0ad6959cb897d5831046d0a (diff) | |
download | rails-9413dba432b11d86b80449ca7b959b32ecb0844c.tar.gz rails-9413dba432b11d86b80449ca7b959b32ecb0844c.tar.bz2 rails-9413dba432b11d86b80449ca7b959b32ecb0844c.zip |
Added tessts for resources generator.
Diffstat (limited to 'railties/Rakefile')
-rw-r--r-- | railties/Rakefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/Rakefile b/railties/Rakefile index 69c1ca762a..56389f9c33 100644 --- a/railties/Rakefile +++ b/railties/Rakefile @@ -26,7 +26,8 @@ task :default => :test ## below passes. It's not ideal, but at least ## we can see the failures task :test do - Dir['test/**/*_test.rb'].all? do |file| + dir = ENV["TEST_DIR"] || "**" + Dir["test/#{dir}/*_test.rb"].all? do |file| ruby = File.join(*RbConfig::CONFIG.values_at('bindir', 'RUBY_INSTALL_NAME')) system(ruby, '-Itest', "-I#{File.dirname(__FILE__)}/../activesupport/lib", file) end or raise "Failures" |