guard-rails/Rakefile

19 lines
388 B
Ruby
Raw Normal View History

2011-05-27 18:41:07 +00:00
require 'bundler'
Bundler::GemHelper.install_tasks
2011-06-03 13:26:03 +00:00
namespace :spec do
desc "Run on three Rubies"
task :platforms do
current = %x{rvm-prompt v}
%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
end
system %{rvm #{current}}
end
end