diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-05-28 11:19:22 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-05-28 11:19:22 -0700 |
commit | e1b59a268b30c4a6ff36af56dbc79e3ce3d2e13f (patch) | |
tree | 9dc016832f1686d3ff83417790b11212133a896f /activesupport/Rakefile | |
parent | 059e4fb5949e87f64dc0f5f9d249d545d7196ab1 (diff) | |
parent | 5eaa30e47c91716006b755b7c211d82bf81f7fc1 (diff) | |
download | rails-e1b59a268b30c4a6ff36af56dbc79e3ce3d2e13f.tar.gz rails-e1b59a268b30c4a6ff36af56dbc79e3ce3d2e13f.tar.bz2 rails-e1b59a268b30c4a6ff36af56dbc79e3ce3d2e13f.zip |
Merge pull request #10781 from arunagw/run-isolated-test
Running isolated tests
Diffstat (limited to 'activesupport/Rakefile')
-rw-r--r-- | activesupport/Rakefile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/activesupport/Rakefile b/activesupport/Rakefile index e3788ed54f..f50225a9f0 100644 --- a/activesupport/Rakefile +++ b/activesupport/Rakefile @@ -9,13 +9,16 @@ Rake::TestTask.new do |t| t.verbose = true end + namespace :test do - Rake::TestTask.new(:isolated) do |t| - t.pattern = 'test/ts_isolated.rb' + task :isolated do + ruby = File.join(*RbConfig::CONFIG.values_at('bindir', 'RUBY_INSTALL_NAME')) + Dir.glob("test/**/*_test.rb").all? do |file| + sh(ruby, '-Ilib:test', file) + end or raise "Failures" end end - spec = eval(File.read('activesupport.gemspec')) Gem::PackageTask.new(spec) do |p| |