Skip to content

Commit 5d276c2

Browse files
committed
Correct rubocop offenses
1 parent 3557bfb commit 5d276c2

File tree

3 files changed

+20
-18
lines changed

3 files changed

+20
-18
lines changed

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

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -151,21 +151,23 @@ class BiDi
151151
network.add_intercept(phases: [described_class::PHASES[:response_started]])
152152
network.on(:response_started) do |event|
153153
request_id = event['request']['request']
154-
network.provide_response(id: request_id,
155-
status: 200,
156-
headers: [
157-
{
158-
name: 'foo',
159-
value: {
160-
type: 'string',
161-
value: 'bar'
162-
}
163-
}
164-
],
165-
body: {
166-
type: 'string',
167-
value: '<html><head><title>Hello World!</title></head><body/></html>'
168-
})
154+
network.provide_response(
155+
id: request_id,
156+
status: 200,
157+
headers: [
158+
{
159+
name: 'foo',
160+
value: {
161+
type: 'string',
162+
value: 'bar'
163+
}
164+
}
165+
],
166+
body: {
167+
type: 'string',
168+
value: '<html><head><title>Hello World!</title></head><body/></html>'
169+
}
170+
)
169171
end
170172

171173
driver.navigate.to url_for('formPage.html')

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ module WebDriver
150150
request.headers['foo'] = 'bar'
151151
request.headers['baz'] = 'qux'
152152
request.cookies['foo'] = 'bar'
153-
request.body = ({ test: 'example' })
153+
request.body = ({test: 'example'})
154154
request.continue
155155
end
156156
driver.navigate.to url_for('formPage.html')

rb/spec/unit/selenium/webdriver/bidi/headers_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ class BiDi
3636

3737
accept_item = serialized.find { |h| h[:name] == 'Accept' }
3838
expect(accept_item).not_to be_nil
39-
expect(accept_item[:value]).to eq({ type: 'string', value: 'application/json' })
39+
expect(accept_item[:value]).to eq({type: 'string', value: 'application/json'})
4040

4141
ua_item = serialized.find { |h| h[:name] == 'User-Agent' }
4242
expect(ua_item).not_to be_nil
43-
expect(ua_item[:value]).to eq({ type: 'string', value: 'MyAgent/1.0' })
43+
expect(ua_item[:value]).to eq({type: 'string', value: 'MyAgent/1.0'})
4444
end
4545
end
4646
end

0 commit comments

Comments
 (0)