Skip to content

Commit e748632

Browse files
committed
fix linting issues
1 parent b5fe047 commit e748632

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

rb/.rubocop.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
require:
2-
- rubocop-performance
32
- rubocop-rake
43
- rubocop-rspec
54

5+
plugins:
6+
- rubocop-performance
7+
68
AllCops:
79
TargetRubyVersion: 3.1
810
NewCops: enable

rb/spec/integration/selenium/webdriver/bidi/network_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ class BiDi
145145
end
146146
end
147147

148-
it 'provides response', except: { browser: :firefox,
149-
reason: 'https://github.com/w3c/webdriver-bidi/issues/747' } do
148+
it 'provides response', except: {browser: :firefox,
149+
reason: 'https://github.com/w3c/webdriver-bidi/issues/747'} do
150150
reset_driver!(web_socket_url: true) do |driver|
151151
network = described_class.new(driver.bidi)
152152
network.add_intercept(phases: [described_class::PHASES[:response_started]])

rb/spec/integration/selenium/webdriver/network_spec.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121

2222
module Selenium
2323
module WebDriver
24-
describe Network, exclusive: { bidi: true, reason: 'only executed when bidi is enabled' },
25-
only: { browser: %i[chrome edge firefox] } do
24+
describe Network, exclusive: {bidi: true, reason: 'only executed when bidi is enabled'},
25+
only: {browser: %i[chrome edge firefox]} do
2626
let(:username) { SpecSupport::RackServer::TestApp::BASIC_AUTH_CREDENTIALS.first }
2727
let(:password) { SpecSupport::RackServer::TestApp::BASIC_AUTH_CREDENTIALS.last }
2828

@@ -160,7 +160,7 @@ module WebDriver
160160
sameSite: 'Strict',
161161
expiry: 1234
162162
})
163-
request.body = ({ test: 'example' })
163+
request.body = ({test: 'example'})
164164
request.continue
165165
end
166166
driver.navigate.to url_for('formPage.html')
@@ -263,8 +263,8 @@ module WebDriver
263263
end
264264

265265
it 'adds a response handler that provides a response',
266-
except: { browser: :firefox,
267-
reason: 'https://github.com/w3c/webdriver-bidi/issues/747' } do
266+
except: {browser: :firefox,
267+
reason: 'https://github.com/w3c/webdriver-bidi/issues/747'} do
268268
reset_driver!(web_socket_url: true) do |driver|
269269
network = described_class.new(driver)
270270
network.add_response_handler do |response|

0 commit comments

Comments
 (0)