Skip to content

Commit

Permalink
Running isolated tests
Browse files Browse the repository at this point in the history
These stopped running don't know when.
But these should be running now.(cherry picked from commit 5eaa30e)
  • Loading branch information
arunagw authored and pixeltrix committed Jul 17, 2013
1 parent 12891e9 commit 078bc2f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 37 deletions.
10 changes: 7 additions & 3 deletions actionpack/Rakefile
Expand Up @@ -22,11 +22,15 @@ Rake::TestTask.new(:test_action_pack) do |t|
end

namespace :test do
Rake::TestTask.new(:isolated) do |t|
t.libs << 'test'
t.pattern = 'test/ts_isolated.rb'
task :isolated do
ruby = File.join(*RbConfig::CONFIG.values_at('bindir', 'RUBY_INSTALL_NAME'))
Dir.glob("test/{abstract,controller,dispatch,template}/**/*_test.rb").all? do |file|
sh(ruby, '-Ilib:test', file)
end or raise "Failures"
end
end

namespace :test do
Rake::TestTask.new(:template) do |t|
t.libs << 'test'
t.pattern = 'test/template/**/*.rb'
Expand Down
15 changes: 0 additions & 15 deletions actionpack/test/ts_isolated.rb

This file was deleted.

9 changes: 6 additions & 3 deletions activesupport/Rakefile
Expand Up @@ -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|
Expand Down
16 changes: 0 additions & 16 deletions activesupport/test/ts_isolated.rb

This file was deleted.

0 comments on commit 078bc2f

Please sign in to comment.