diaspora/lib/tasks/cruise.rake

11 lines
380 B
Ruby

namespace :cruise do
desc "Run all specs and features"
task :cruise => :environment do
system('/etc/init.d/xvfb start')
system('export DISPLAY=:99.0 && export SELENIUM_SERVER_PORT=53809 && bundle exec rake')
exit_status = $?.exitstatus
system('/etc/init.d/xvfb stop')
raise "tests failed!" unless exit_status == 0
end
end
task :cruise => "cruise:cruise"