Autofix Rubocop Style/MethodCallWithoutArgsParentheses (#23645)
This commit is contained in:
parent
4a1bad2fd8
commit
37914c8757
3 changed files with 6 additions and 14 deletions
|
@ -212,8 +212,8 @@ RSpec.describe ActivityPub::ProcessCollectionService, type: :service do
|
|||
'id' => 'https://example.com/users/bob/fake-status'
|
||||
)
|
||||
),
|
||||
anything(),
|
||||
anything()
|
||||
anything,
|
||||
anything
|
||||
)
|
||||
|
||||
expect(ActivityPub::Activity).not_to receive(:factory).with(
|
||||
|
@ -222,8 +222,8 @@ RSpec.describe ActivityPub::ProcessCollectionService, type: :service do
|
|||
'content' => '<p>puck was here</p>'
|
||||
)
|
||||
),
|
||||
anything(),
|
||||
anything()
|
||||
anything,
|
||||
anything
|
||||
)
|
||||
|
||||
subject.call(json, forwarder)
|
||||
|
|
|
@ -21,7 +21,7 @@ RSpec.describe FetchResourceService, type: :service do
|
|||
|
||||
context 'when OpenSSL::SSL::SSLError is raised' do
|
||||
before do
|
||||
request = double()
|
||||
request = double
|
||||
allow(Request).to receive(:new).and_return(request)
|
||||
allow(request).to receive(:add_headers)
|
||||
allow(request).to receive(:on_behalf_of)
|
||||
|
@ -33,7 +33,7 @@ RSpec.describe FetchResourceService, type: :service do
|
|||
|
||||
context 'when HTTP::ConnectionError is raised' do
|
||||
before do
|
||||
request = double()
|
||||
request = double
|
||||
allow(Request).to receive(:new).and_return(request)
|
||||
allow(request).to receive(:add_headers)
|
||||
allow(request).to receive(:on_behalf_of)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue