Remove remaining without_partial_double_verification usage (#28127)

This commit is contained in:
Matt Jankowski 2023-12-07 07:15:50 -05:00 committed by GitHub
parent 1d7b8234c9
commit 0b4a3a0437
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 36 additions and 41 deletions

View file

@ -23,12 +23,19 @@ RSpec.describe HomeHelper do
context 'with a valid account' do
let(:account) { Fabricate(:account) }
it 'returns a link to the account' do
without_partial_double_verification do
allow(helper).to receive_messages(current_account: account, prefers_autoplay?: false)
result = helper.account_link_to(account)
before { helper.extend controller_helpers }
expect(result).to match "@#{account.acct}"
it 'returns a link to the account' do
result = helper.account_link_to(account)
expect(result).to match "@#{account.acct}"
end
private
def controller_helpers
Module.new do
def current_account = Account.last
end
end
end