about summary refs log tree commit diff
path: root/spec/helpers/admin/account_moderation_notes_helper_spec.rb
diff options
context:
space:
mode:
authorMatt Jankowski <matt@jankowski.online>2023-03-04 10:58:11 -0500
committerGitHub <noreply@github.com>2023-03-04 16:58:11 +0100
commit2f606ba1220edf29e805296939f4e5612721bbf0 (patch)
treee10cde979dc0f43d1ed9bccfa355b73e50ce2ca0 /spec/helpers/admin/account_moderation_notes_helper_spec.rb
parent00eb2269b691b90f361dd03454cf823934389282 (diff)
Helpers specs coverage improvement (#23937)
Diffstat (limited to 'spec/helpers/admin/account_moderation_notes_helper_spec.rb')
-rw-r--r--spec/helpers/admin/account_moderation_notes_helper_spec.rb10
1 files changed, 4 insertions, 6 deletions
diff --git a/spec/helpers/admin/account_moderation_notes_helper_spec.rb b/spec/helpers/admin/account_moderation_notes_helper_spec.rb
index 622ce8806..e01eba51d 100644
--- a/spec/helpers/admin/account_moderation_notes_helper_spec.rb
+++ b/spec/helpers/admin/account_moderation_notes_helper_spec.rb
@@ -42,13 +42,11 @@ RSpec.describe Admin::AccountModerationNotesHelper, type: :helper do
       let(:account) { Fabricate(:account) }
 
       it 'calls #link_to' do
-        expect(helper).to receive(:link_to).with(
-          admin_account_path(account.id),
-          class: name_tag_classes(account, true),
-          title: account.acct
-        )
+        result = helper.admin_account_inline_link_to(account)
 
-        helper.admin_account_inline_link_to(account)
+        expect(result).to match(name_tag_classes(account, true))
+        expect(result).to match(account.acct)
+        expect(result).to match(admin_account_path(account.id))
       end
     end
   end