diff options
author | wycats <wycats@gmail.com> | 2010-07-26 21:54:34 -0700 |
---|---|---|
committer | wycats <wycats@gmail.com> | 2010-07-26 21:55:45 -0700 |
commit | 870ad85705393be8d76e4caf0ec111608e2472fd (patch) | |
tree | 37564af0111d00c8caec340257ac05bf4503c204 /Rakefile | |
parent | 35d94f004c0f68553412414d73f3653b2c883309 (diff) | |
download | bundler-870ad85705393be8d76e4caf0ec111608e2472fd.tar.gz |
Get Bundler tests running on RSpec 2
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 13 |
1 files changed, 5 insertions, 8 deletions
@@ -13,7 +13,7 @@ def gemspec end begin - require 'spec/rake/spectask' + require 'rspec/core/rake_task' rescue LoadError raise 'Run `gem install rspec` to be able to run specs' else @@ -22,8 +22,7 @@ else end desc "Run specs" - Spec::Rake::SpecTask.new do |t| - t.spec_files = FileList['spec/**/*_spec.rb'] + RSpec::Core::RakeTask.new do |t| t.spec_opts = %w(-fs --color) t.warning = true end @@ -35,8 +34,7 @@ end rubyopt = ENV["RUBYOPT"] %w(master REL_1_3_5 REL_1_3_6).each do |rg| desc "Run specs with Rubygems #{rg}" - Spec::Rake::SpecTask.new("spec_gems_#{rg}") do |t| - t.spec_files = FileList['spec/**/*_spec.rb'] + RSpec::Core::RakeTask.new("spec_gems_#{rg}") do |t| t.spec_opts = %w(-fs --color) t.warning = true end @@ -62,11 +60,10 @@ end ruby_cmd = File.expand_path("~/.rvm/bin/ruby-#{ruby}") desc "Run specs on Ruby #{ruby}" - Spec::Rake::SpecTask.new("spec_ruby_#{ruby}") do |t| - t.spec_files = FileList['spec/**/*_spec.rb'] + RSpec::Core::RakeTask.new("spec_ruby_#{ruby}") do |t| t.spec_opts = %w(-fs --color) t.warning = true - t.ruby_cmd = ruby_cmd + #t.ruby_cmd = ruby_cmd end task "ensure_ruby_#{ruby}" do |