Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed random ordering of test cases that would cause errors on some s…

…ystems #446 [Josh]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@373 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 903dcefbaff8cf3a0e9db61048aebd9e753835ea 1 parent b9f28eb
@dhh dhh authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 actionpack/Rakefile
View
7 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
+end
Please sign in to comment.
Something went wrong with that request. Please try again.