Fix RSpec/DescribedClass
cop (#29472)
This commit is contained in:
parent
c09b8a7164
commit
6262ceeb70
12 changed files with 29 additions and 29 deletions
|
@ -150,7 +150,7 @@ RSpec.describe PostStatusService do
|
|||
|
||||
expect do
|
||||
subject.call(account, text: '@alice hm, @bob is really annoying lately', allowed_mentions: [mentioned_account.id])
|
||||
end.to raise_error(an_instance_of(PostStatusService::UnexpectedMentionsError).and(having_attributes(accounts: [unexpected_mentioned_account])))
|
||||
end.to raise_error(an_instance_of(described_class::UnexpectedMentionsError).and(having_attributes(accounts: [unexpected_mentioned_account])))
|
||||
end
|
||||
|
||||
it 'processes duplicate mentions correctly' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue