diff options
author | Nick Schonning <nschonni@gmail.com> | 2023-02-19 20:45:50 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-20 02:45:50 +0100 |
commit | dbc6d7b276aa1ccc085f76caa43cc091311af6b7 (patch) | |
tree | f3224671289654120fb3edbdf37c0244310907d2 /spec/lib | |
parent | 65ba0d92ef78f82a3cf5bf04f13b3d7393da015d (diff) |
Autofix Rubocop Lint/UnusedBlockArgument (#23712)
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/activitypub/activity/add_spec.rb | 4 | ||||
-rw-r--r-- | spec/lib/request_pool_spec.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/lib/activitypub/activity/add_spec.rb b/spec/lib/activitypub/activity/add_spec.rb index 0b08e2924..e21c871e6 100644 --- a/spec/lib/activitypub/activity/add_spec.rb +++ b/spec/lib/activitypub/activity/add_spec.rb @@ -48,7 +48,7 @@ RSpec.describe ActivityPub::Activity::Add do end it 'fetches the status and pins it' do - allow(service_stub).to receive(:call) do |uri, id: true, on_behalf_of: nil, request_id: nil| + allow(service_stub).to receive(:call) do |uri, id: true, on_behalf_of: nil, request_id: nil| # rubocop:disable Lint/UnusedBlockArgument expect(uri).to eq 'https://example.com/unknown' expect(id).to eq true expect(on_behalf_of&.following?(sender)).to eq true @@ -62,7 +62,7 @@ RSpec.describe ActivityPub::Activity::Add do context 'when there is no local follower' do it 'tries to fetch the status' do - allow(service_stub).to receive(:call) do |uri, id: true, on_behalf_of: nil, request_id: nil| + allow(service_stub).to receive(:call) do |uri, id: true, on_behalf_of: nil, request_id: nil| # rubocop:disable Lint/UnusedBlockArgument expect(uri).to eq 'https://example.com/unknown' expect(id).to eq true expect(on_behalf_of).to eq nil diff --git a/spec/lib/request_pool_spec.rb b/spec/lib/request_pool_spec.rb index 4a144d7c7..63dc9c5dd 100644 --- a/spec/lib/request_pool_spec.rb +++ b/spec/lib/request_pool_spec.rb @@ -33,7 +33,7 @@ describe RequestPool do subject - threads = 20.times.map do |i| + threads = 20.times.map do |_i| Thread.new do 20.times do subject.with('http://example.com') do |http_client| |