aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-01-10 22:58:06 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-01-10 22:58:06 +0000
commit903dcefbaff8cf3a0e9db61048aebd9e753835ea (patch)
treeb95539df6d542d7a71475a9ee051e026d920385f
parentb9f28eb587a4ad52ea2e0f499aaa7bc53746c173 (diff)
downloadrails-903dcefbaff8cf3a0e9db61048aebd9e753835ea.tar.gz
rails-903dcefbaff8cf3a0e9db61048aebd9e753835ea.tar.bz2
rails-903dcefbaff8cf3a0e9db61048aebd9e753835ea.zip
Fixed random ordering of test cases that would cause errors on some systems #446 [Josh]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@373 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rwxr-xr-xactionpack/Rakefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/actionpack/Rakefile b/actionpack/Rakefile
index c885221f10..b2d3f8c986 100755
--- a/actionpack/Rakefile
+++ b/actionpack/Rakefile
@@ -20,7 +20,10 @@ task :default => [ :test ]
Rake::TestTask.new { |t|
t.libs << "test"
- t.pattern = 'test/*/*_test.rb'
+# make sure we include the controller tests (c*) first as on some systems
+# this will not happen automatically and the tests (as a whole) will error
+ t.test_files=Dir.glob( "test/c*/*_test.rb" ) + Dir.glob( "test/[ft]*/*_test.rb" )
+# t.pattern = 'test/*/*_test.rb'
t.verbose = true
}
@@ -104,4 +107,4 @@ task :lines do
end
}
puts "Lines #{lines}, LOC #{codelines}"
-end \ No newline at end of file
+end