diff options
author | Yehuda Katz <wycats@gmail.com> | 2009-09-12 15:22:11 -0500 |
---|---|---|
committer | Yehuda Katz <wycats@gmail.com> | 2009-09-12 15:22:11 -0500 |
commit | ddb4600ce608b14f9fa07bf1196b78e1d43ad999 (patch) | |
tree | c966da55cf5b475cdacb137597dfa1204e6f2547 /actionpack/Rakefile | |
parent | a8a336cbfc55f91dc8befaad2425ff42085a1a4f (diff) | |
download | rails-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/Rakefile | 12 |
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 |