Skip to content

Commit 436db51

Browse files
committed
[rb] fix linter issues
1 parent 251d3b8 commit 436db51

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

rb/spec/integration/selenium/webdriver/firefox/driver_spec.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ module Firefox
4444
page: {width: 30})).to include(magic_number)
4545
end
4646

47-
it 'should print full page', except: [{ ci: :github,
48-
platform: :windows,
49-
reason: 'Some issues with resolution?' },
47+
it 'should print full page', except: [{ci: :github,
48+
platform: :windows,
49+
reason: 'Some issues with resolution?'},
5050
{platform: :macosx,
5151
headless: true,
5252
reason: 'showing half resolution of what expected'}] do

rb/spec/integration/selenium/webdriver/spec_helper.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
guards.add_condition(:browser, GlobalTestEnv.browser)
5454
guards.add_condition(:ci, WebDriver::Platform.ci)
5555
guards.add_condition(:platform, WebDriver::Platform.os)
56-
guards.add_condition(:headless, !!ENV['HEADLESS'])
56+
guards.add_condition(:headless, !ENV['HEADLESS'].nil?)
5757

5858
results = guards.disposition
5959
send(*results) if results

rb/spec/integration/selenium/webdriver/takes_screenshot_spec.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ def save_screenshot_and_assert(source, path)
9393

9494
it 'takes full page screenshot', exclusive: {browser: :firefox},
9595
except: [{ci: :github,
96-
platform: :windows,
97-
reason: 'Some issues with resolution?'},
96+
platform: :windows,
97+
reason: 'Some issues with resolution?'},
9898
{platform: :macosx,
9999
headless: true,
100100
reason: 'showing half resolution of what expected'}] do

0 commit comments

Comments
 (0)