Rename ResolveRemoteAccountService to ResolveAccountService (#6327)
The service used to be named ResolveRemoteAccountService resolves local accounts as well.
This commit is contained in:
parent
17cecd75ca
commit
613e7c7521
17 changed files with 26 additions and 26 deletions
|
@ -30,7 +30,7 @@ describe AuthorizeFollowsController do
|
|||
|
||||
it 'renders error when account cant be found' do
|
||||
service = double
|
||||
allow(ResolveRemoteAccountService).to receive(:new).and_return(service)
|
||||
allow(ResolveAccountService).to receive(:new).and_return(service)
|
||||
allow(service).to receive(:call).with('missing@hostname').and_return(nil)
|
||||
|
||||
get :show, params: { acct: 'acct:missing@hostname' }
|
||||
|
@ -54,7 +54,7 @@ describe AuthorizeFollowsController do
|
|||
it 'sets account from acct uri' do
|
||||
account = Account.new
|
||||
service = double
|
||||
allow(ResolveRemoteAccountService).to receive(:new).and_return(service)
|
||||
allow(ResolveAccountService).to receive(:new).and_return(service)
|
||||
allow(service).to receive(:call).with('found@hostname').and_return(account)
|
||||
|
||||
get :show, params: { acct: 'acct:found@hostname' }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue