Skip to content

Commit

Permalink
Make RuboCop happy again
Browse files Browse the repository at this point in the history
  • Loading branch information
p0deje committed Oct 5, 2018
1 parent b87ddc8 commit 9337dbd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rb/spec/integration/selenium/webdriver/window_spec.rb
Expand Up @@ -116,7 +116,8 @@ module WebDriver

# Edge: Not Yet - https://dev.windows.com/en-us/microsoft-edge/platform/status/webdriver/details/
# https://github.com/mozilla/geckodriver/issues/1281
it 'can make window full screen', only: {window_manager: true, browser: [:ie, :firefox]}, exclude: {driver: :remote, browser: :firefox, platform: :linux} do
it 'can make window full screen', only: {window_manager: true, browser: %i[ie firefox]},
exclude: {driver: :remote, browser: :firefox, platform: :linux} do
window.size = old_size = Dimension.new(200, 200)

wait.until { window.size != old_size }
Expand All @@ -128,7 +129,8 @@ module WebDriver

# Edge: Not Yet - https://dev.windows.com/en-us/microsoft-edge/platform/status/webdriver/details/
# https://github.com/mozilla/geckodriver/issues/1281
it 'can minimize the window', only: {window_manager: true, browser: [:ie, :firefox]}, exclude: {driver: :remote, browser: :firefox, platform: :linux} do
it 'can minimize the window', only: {window_manager: true, browser: %i[ie firefox]},
exclude: {driver: :remote, browser: :firefox, platform: :linux} do
window.minimize
expect(driver.execute_script('return document.hidden;')).to be true
end
Expand Down

0 comments on commit 9337dbd

Please sign in to comment.