Skip to content

Commit

Permalink
[rb] minor syntax fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Oct 20, 2021
1 parent 6733a1b commit 89f8bd5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions rb/lib/selenium/webdriver/common/options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,6 @@ def convert_json_key(key, camelize: true)
def camel_case(str)
str.gsub(/_([a-z])/) { Regexp.last_match(1).upcase }
end
end

# Options
end # Options
end # WebDriver
end # Selenium
2 changes: 1 addition & 1 deletion rb/spec/unit/selenium/webdriver/firefox/options_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ module Firefox
options.add_preference('intl.accepted_languages', 'en-US')

prefs = options.as_json['moz:firefoxOptions']['prefs']
expected = { 'intl.accepted_languages' => 'en-US' }
expected = {'intl.accepted_languages' => 'en-US'}
expect(prefs).to eq(expected)
end
end
Expand Down

0 comments on commit 89f8bd5

Please sign in to comment.