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
|
@ -185,8 +185,8 @@ RSpec.describe Account, type: :model do
|
|||
expect(account.refresh!).to be_nil
|
||||
end
|
||||
|
||||
it 'calls not ResolveRemoteAccountService#call' do
|
||||
expect_any_instance_of(ResolveRemoteAccountService).not_to receive(:call).with(acct)
|
||||
it 'calls not ResolveAccountService#call' do
|
||||
expect_any_instance_of(ResolveAccountService).not_to receive(:call).with(acct)
|
||||
account.refresh!
|
||||
end
|
||||
end
|
||||
|
@ -194,8 +194,8 @@ RSpec.describe Account, type: :model do
|
|||
context 'domain is present' do
|
||||
let(:domain) { 'example.com' }
|
||||
|
||||
it 'calls ResolveRemoteAccountService#call' do
|
||||
expect_any_instance_of(ResolveRemoteAccountService).to receive(:call).with(acct).once
|
||||
it 'calls ResolveAccountService#call' do
|
||||
expect_any_instance_of(ResolveAccountService).to receive(:call).with(acct).once
|
||||
account.refresh!
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue