diff options
author | Nick Schonning <nschonni@gmail.com> | 2023-02-19 20:32:10 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-20 02:32:10 +0100 |
commit | a2fdb388eb412f3f90ec48bc990c7c2c24b8c072 (patch) | |
tree | 545c29a43450c390c5302c154538da65d2bae43b /spec/controllers/api/v1/statuses | |
parent | 21bf32635687770bc0026d769a69f49b89f8a0a2 (diff) |
Autofix Rubocop RSpec/ReturnFromStub (#23724)
Diffstat (limited to 'spec/controllers/api/v1/statuses')
-rw-r--r-- | spec/controllers/api/v1/statuses/favourited_by_accounts_controller_spec.rb | 2 | ||||
-rw-r--r-- | spec/controllers/api/v1/statuses/reblogged_by_accounts_controller_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/api/v1/statuses/favourited_by_accounts_controller_spec.rb b/spec/controllers/api/v1/statuses/favourited_by_accounts_controller_spec.rb index 4dcaba6bd..c1c6f5f12 100644 --- a/spec/controllers/api/v1/statuses/favourited_by_accounts_controller_spec.rb +++ b/spec/controllers/api/v1/statuses/favourited_by_accounts_controller_spec.rb @@ -45,7 +45,7 @@ RSpec.describe Api::V1::Statuses::FavouritedByAccountsController, type: :control context 'without an oauth token' do before do - allow(controller).to receive(:doorkeeper_token) { nil } + allow(controller).to receive(:doorkeeper_token).and_return(nil) end context 'with a private status' do diff --git a/spec/controllers/api/v1/statuses/reblogged_by_accounts_controller_spec.rb b/spec/controllers/api/v1/statuses/reblogged_by_accounts_controller_spec.rb index dc36d4ca0..90187a585 100644 --- a/spec/controllers/api/v1/statuses/reblogged_by_accounts_controller_spec.rb +++ b/spec/controllers/api/v1/statuses/reblogged_by_accounts_controller_spec.rb @@ -45,7 +45,7 @@ RSpec.describe Api::V1::Statuses::RebloggedByAccountsController, type: :controll context 'without an oauth token' do before do - allow(controller).to receive(:doorkeeper_token) { nil } + allow(controller).to receive(:doorkeeper_token).and_return(nil) end context 'with a private status' do |