Ensure browser type is initialized csafely

This commit is contained in:
John Bintz 2015-01-09 11:32:16 -05:00
parent 34693f4ef0
commit fdeb1b9eb5

View File

@ -5,7 +5,7 @@ require 'base64'
module PersistentSelenium
class Browser < Capybara::Selenium::Driver
def initialize(browser_type)
@browser_type = browser_type
@browser_type = browser_type.to_s.to_sym
@__found_elements__ = []
end