From 75a2f00c9790f2fd7cebb4337cab1404e9e03eae Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Sat, 3 Oct 2009 21:33:06 -0500 Subject: Move improved isolated test runner to AP --- actionpack/test/ts_isolated.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 actionpack/test/ts_isolated.rb (limited to 'actionpack/test') diff --git a/actionpack/test/ts_isolated.rb b/actionpack/test/ts_isolated.rb new file mode 100644 index 0000000000..4a321c631f --- /dev/null +++ b/actionpack/test/ts_isolated.rb @@ -0,0 +1,16 @@ +require 'test/unit' +require 'rbconfig' +require 'rubygems' +require 'active_support' + +class TestIsolated < Test::Unit::TestCase + ruby = File.join(*RbConfig::CONFIG.values_at('bindir', 'RUBY_INSTALL_NAME')) + + Dir["#{File.dirname(__FILE__)}/{abstract,controller,dispatch,template}/**/*_test.rb"].each do |file| + define_method("test #{file}") do + command = "#{ruby} -Ilib:test #{file}" + silence_stderr { `#{command}` } + assert_equal 0, $?.to_i, command + end + end +end -- cgit v1.2.3