aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/Rakefile
diff options
context:
space:
mode:
authorYehuda Katz <wycats@gmail.com>2009-09-12 15:22:11 -0500
committerYehuda Katz <wycats@gmail.com>2009-09-12 15:22:11 -0500
commitddb4600ce608b14f9fa07bf1196b78e1d43ad999 (patch)
treec966da55cf5b475cdacb137597dfa1204e6f2547 /actionpack/Rakefile
parenta8a336cbfc55f91dc8befaad2425ff42085a1a4f (diff)
downloadrails-ddb4600ce608b14f9fa07bf1196b78e1d43ad999.tar.gz
rails-ddb4600ce608b14f9fa07bf1196b78e1d43ad999.tar.bz2
rails-ddb4600ce608b14f9fa07bf1196b78e1d43ad999.zip
Get ActionPack's test running on bundled gems. This should make running tests on new machines, as well as CI, work well.
Diffstat (limited to 'actionpack/Rakefile')
-rw-r--r--actionpack/Rakefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/actionpack/Rakefile b/actionpack/Rakefile
index 06f6905af0..6d98aa3190 100644
--- a/actionpack/Rakefile
+++ b/actionpack/Rakefile
@@ -17,7 +17,17 @@ RUBY_FORGE_PROJECT = "actionpack"
RUBY_FORGE_USER = "webster132"
desc "Default Task"
-task :default => [ :test ]
+task :default => [ :bundle, :test ]
+
+task :bundle do
+ puts "Checking if the bundled testing requirements are up to date..."
+ result = system "gem bundle"
+ unless result
+ puts "The gem bundler is not installed. Installing."
+ system "gem install bundler"
+ system "gem bundle"
+ end
+end
# Run the unit tests