Prevent running acceptance specs from outside a dev machine

This commit is contained in:
Fabio Rehm 2013-04-21 18:04:36 -03:00
parent ae46fff7c0
commit a1c19371c6

View file

@ -1,5 +1,10 @@
require 'spec_helper'
unless ENV['USER'] == 'vagrant'
puts 'Acceptance specs are supposed to run from one of the vagrant dev machines'
exit 1
end
if defined? SimpleCov
SimpleCov.command_name 'acceptance'
end