aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/Rakefile
diff options
context:
space:
mode:
authorArun Agrawal <arunagw@gmail.com>2013-07-14 20:51:15 +0200
committerAndrew White <andyw@pixeltrix.co.uk>2013-07-17 08:55:24 +0100
commit96310f69e1fd4bf0d744ed9599df895ef1fcf2d1 (patch)
tree131b3f9dda497673d039fbe5b3b9868326ce7d8b /actionpack/Rakefile
parentc212cfecb177338db21d2ecebbb66aa0787974f4 (diff)
downloadrails-96310f69e1fd4bf0d744ed9599df895ef1fcf2d1.tar.gz
rails-96310f69e1fd4bf0d744ed9599df895ef1fcf2d1.tar.bz2
rails-96310f69e1fd4bf0d744ed9599df895ef1fcf2d1.zip
Added routing in test for actionpack
Diffstat (limited to 'actionpack/Rakefile')
-rw-r--r--actionpack/Rakefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/actionpack/Rakefile b/actionpack/Rakefile
index 97ab30ada0..748df26033 100644
--- a/actionpack/Rakefile
+++ b/actionpack/Rakefile
@@ -1,6 +1,8 @@
require 'rake/testtask'
require 'rubygems/package_task'
+test_files = Dir.glob('test/{abstract,controller,dispatch,assertions,journey,routing}/**/*_test.rb')
+
desc "Default Task"
task :default => :test
@@ -10,7 +12,7 @@ Rake::TestTask.new do |t|
# make sure we include the tests in alphabetical order as on some systems
# this will not happen automatically and the tests (as a whole) will error
- t.test_files = Dir.glob('test/{abstract,controller,dispatch,assertions,journey}/**/*_test.rb').sort
+ t.test_files = test_files.sort
t.warning = true
t.verbose = true
@@ -19,7 +21,7 @@ end
namespace :test do
task :isolated do
ruby = File.join(*RbConfig::CONFIG.values_at('bindir', 'RUBY_INSTALL_NAME'))
- Dir.glob("test/{abstract,controller,dispatch,assertions,journey}/**/*_test.rb").all? do |file|
+ test_files.all? do |file|
sh(ruby, '-w', '-Ilib:test', file)
end or raise "Failures"
end