diff --git a/Rakefile b/Rakefile index 2c42f66..efa7766 100644 --- a/Rakefile +++ b/Rakefile @@ -6,13 +6,19 @@ namespace :spec do task :platforms do current = %x{rvm-prompt v} + fail = false %w{1.8.7 1.9.2 ree}.each do |version| puts "Switching to #{version}" system %{rvm #{version}} system %{bundle exec rspec spec} - break if $?.exitstatus != 0 + if $?.exitstatus != 0 + fail = true + break + end end system %{rvm #{current}} + + exit (fail ? 1 : 0) end end