Run specs on multiple browsers

This commit is contained in:
Greg Cobb and JR Boyens
2013-07-18 16:32:33 -07:00
parent 0f803430e4
commit 6569176cc9
3 changed files with 10 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ require 'jasmine'
Jasmine.load_configuration_from_yaml(File.join(Dir.pwd, 'spec', 'jasmine.yml'))
config = Jasmine.config
Jasmine.configure do |config|
config.browser = ENV.fetch('JASMINE_BROWSER', 'firefox')
config.browser = ENV['JASMINE_BROWSER'] || 'firefox'
end
server = Jasmine::Server.new(config.port, Jasmine::Application.app(config))
driver = Jasmine::SeleniumDriver.new(config.browser, "#{config.host}:#{config.port}/")