spec/implementation.rb in watir-webdriver-0.7.0 vs spec/implementation.rb in watir-webdriver-0.8.0
- old
+ new
@@ -33,11 +33,11 @@
[browser, {}]
end
if ENV['SELECTOR_STATS']
listener = SelectorListener.new
- args.last.merge!(:listener => listener)
+ args.last.merge!(listener: listener)
at_exit { listener.report }
end
@imp.browser_args = args
end
@@ -100,17 +100,17 @@
def firefox_args
profile = Selenium::WebDriver::Firefox::Profile.new
profile.native_events = native_events?
- [:firefox, {:profile => profile}]
+ [:firefox, {profile: profile}]
end
def chrome_args
opts = {
- :args => ["--disable-translate"],
- :native_events => native_events?
+ args: ["--disable-translate"],
+ native_events: native_events?
}
if url = ENV['WATIR_WEBDRIVER_CHROME_SERVER']
opts[:url] = url
end
@@ -129,10 +129,10 @@
[:chrome, opts]
end
def remote_args
- [:remote, {:url => ENV["WATIR_WEBDRIVER_REMOTE_URL"] || "http://127.0.0.1:8080"}]
+ [:remote, {url: ENV["WATIR_WEBDRIVER_REMOTE_URL"] || "http://127.0.0.1:8080"}]
end
def add_html_routes
glob = File.expand_path("../html/*.html", __FILE__)
Dir[glob].each do |path|