diff options
author | Claire <claire.github-309c@sitedethib.com> | 2021-02-24 06:32:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-24 06:32:13 +0100 |
commit | 5f4c0b79c25486548b44f1bc5d65e7527a4843c4 (patch) | |
tree | 376e4de10619b73b47ddc36a76a17e13bb52637b /spec/controllers/authorize_interactions_controller_spec.rb | |
parent | eb83ab45e26811dc9ddc07db68559bd36f33deb5 (diff) |
Change ResolveAccountService's handling of skip_webfinger (#15750)
* Change ResolveAccountService's handling of skip_webfinger Change it so it never makes any webfinger query, as the name would imply. * Add tests * Change FollowService to not take an URI for target_account * Restore domain-block check in FollowService * Fix tests
Diffstat (limited to 'spec/controllers/authorize_interactions_controller_spec.rb')
-rw-r--r-- | spec/controllers/authorize_interactions_controller_spec.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/spec/controllers/authorize_interactions_controller_spec.rb b/spec/controllers/authorize_interactions_controller_spec.rb index ce4257b68..b4ce30cd7 100644 --- a/spec/controllers/authorize_interactions_controller_spec.rb +++ b/spec/controllers/authorize_interactions_controller_spec.rb @@ -99,12 +99,10 @@ describe AuthorizeInteractionsController do allow(ResolveAccountService).to receive(:new).and_return(service) allow(service).to receive(:call).with('user@hostname').and_return(target_account) - allow(service).to receive(:call).with(target_account, skip_webfinger: true).and_return(target_account) post :create, params: { acct: 'acct:user@hostname' } - expect(service).to have_received(:call).with(target_account, skip_webfinger: true) expect(account.following?(target_account)).to be true expect(response).to render_template(:success) end |