2012-08-13 07:32:10 +02:00
|
|
|
namespace :dev do
|
|
|
|
desc "DEV | Run cucumber and rspec"
|
|
|
|
task :tests do
|
|
|
|
["cucumber", "rspec spec"].each do |cmd|
|
|
|
|
puts "Starting to run #{cmd}..."
|
2012-08-17 08:09:11 +02:00
|
|
|
system("export DISPLAY=:99.0 && bundle exec #{cmd}")
|
2012-08-13 07:32:10 +02:00
|
|
|
raise "#{cmd} failed!" unless $?.exitstatus == 0
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|