Skip to content

Commit 6f9185d

Browse files
committed
Fix rubocop offenses
1 parent c7ac7f2 commit 6f9185d

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

lib/capybara_mock.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ class << self
6161
# @param method [String]
6262
# @param path [String]
6363
# @return [CapybaraMock::Stub]
64-
def stub_path(method, path, &block)
64+
def stub_path(method, path, &)
6565
url = File.join(capybara_session.server.base_url, path)
66-
stub_request(method, url, &block)
66+
stub_request(method, url, &)
6767
end
6868

6969
# Stub capybara request for current session using url.

spec/capybara_mock/stub_spec.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@
4949
context 'with `.with`' do
5050
subject(:stub) do
5151
described_class.new(:get, 'http://example.com').with(
52-
query: query,
53-
headers: headers,
54-
body: body
52+
query:,
53+
headers:,
54+
body:
5555
)
5656
end
5757

@@ -63,9 +63,9 @@
6363
{
6464
method: 'GET',
6565
url: 'http://example.com',
66-
query: query,
67-
headers: headers,
68-
body: body
66+
query:,
67+
headers:,
68+
body:
6969
}
7070
end
7171

0 commit comments

Comments
 (0)