about summary refs log tree commit diff
path: root/spec/services/post_status_service_spec.rb
diff options
context:
space:
mode:
authorNick Schonning <nschonni@gmail.com>2023-02-17 07:43:10 -0500
committerGitHub <noreply@github.com>2023-02-17 21:43:10 +0900
commit936204b9eae85829c368e5877e4166faa5861fab (patch)
treec5a5798764806dcaa5ac96cdf56512f35386fa97 /spec/services/post_status_service_spec.rb
parent37914c8757062194c8da2ede28927fdc177dc140 (diff)
Autofix Rubocop Style/NestedParenthesizedCalls (#23646)
Diffstat (limited to 'spec/services/post_status_service_spec.rb')
-rw-r--r--spec/services/post_status_service_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/services/post_status_service_spec.rb b/spec/services/post_status_service_spec.rb
index 28f20e9c7..76114a59c 100644
--- a/spec/services/post_status_service_spec.rb
+++ b/spec/services/post_status_service_spec.rb
@@ -148,7 +148,7 @@ RSpec.describe PostStatusService, type: :service 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(PostStatusService::UnexpectedMentionsError).and(having_attributes(accounts: [unexpected_mentioned_account])))
   end
 
   it 'processes duplicate mentions correctly' do