Skip to content

Commit

Permalink
Removed double splats to be compatible with older Ruby versions (< 2.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
mackermans committed Jun 15, 2016
1 parent ae63016 commit 8d75b3c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/billy/watir/watir.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def self.browser(name, args = {})
end
args[:switches] = switches

@browser = Watir::Browser.new :chrome, **args
@browser = Watir::Browser.new :chrome, args
elsif(name === :phantomjs)
additional_args = args[:args]
if additional_args.nil?
Expand All @@ -20,7 +20,7 @@ def self.browser(name, args = {})
additional_args.push(*@settings[:phantomjs][:args])
end
args[:args] = additional_args
@browser = Watir::Browser.new :phantomjs, **args
@browser = Watir::Browser.new :phantomjs, args
else
profile = args[:profile]
if profile.nil?
Expand All @@ -29,7 +29,7 @@ def self.browser(name, args = {})
profile.proxy = @settings[:firefox][:proxy]
args[:profile] = profile

@browser = Watir::Browser.new :firefox, **args
@browser = Watir::Browser.new :firefox, args
end
@browser
end
Expand Down

0 comments on commit 8d75b3c

Please sign in to comment.