Configure selenium path extra early, since it loads its config file when required

This commit is contained in:
slackersoft 2014-08-04 18:30:49 -07:00
parent 9322af290a
commit efbc3dbc01

View File

@ -1,3 +1,4 @@
ENV['JASMINE_SELENIUM_CONFIG_PATH'] ||= 'spec/support/jasmine_selenium_runner.yml'
require 'jasmine'
require 'jasmine_selenium_runner'
@ -5,7 +6,6 @@ load 'jasmine/tasks/jasmine.rake'
namespace :jasmine do
task :set_env do
ENV['JASMINE_SELENIUM_CONFIG_PATH'] ||= 'spec/support/jasmine_selenium_runner.yml'
ENV['JASMINE_CONFIG_PATH'] ||= 'spec/support/jasmine.yml'
end
end