Users may specify a different browser to run jasmine:ci in by setting ENV['JASMINE_BROWSER']

This commit is contained in:
ragaskar
2010-03-10 22:02:45 -08:00
parent 199517abaa
commit a0fbbd7f67
2 changed files with 121 additions and 91 deletions

View File

@@ -5,9 +5,8 @@ module Jasmine
def initialize(options = {})
require 'selenium_rc'
@selenium_jar_path = SeleniumRC::Server.allocate.jar_path
@options = options
@browser = options[:browser] ? options.delete(:browser) : 'firefox'
@browser = ENV["JASMINE_BROWSER"] || 'firefox'
@selenium_pid = nil
@jasmine_server_pid = nil
end