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-18 06:39:58 -0500
committerGitHub <noreply@github.com>2023-02-18 12:39:58 +0100
commitc38bd17657483013ed189eccf8262557e4d0c465 (patch)
tree698a17278dfd4d34bddc5d996f221f1d6ea75a2d /spec/services/post_status_service_spec.rb
parentab7816a4141e88cf7e05ba49638ee95fcc6f71ff (diff)
Autofix Rubocop Style/TrailingCommaInArguments (#23694)
Diffstat (limited to 'spec/services/post_status_service_spec.rb')
-rw-r--r--spec/services/post_status_service_spec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/services/post_status_service_spec.rb b/spec/services/post_status_service_spec.rb
index 76114a59c..7bb7dfb1f 100644
--- a/spec/services/post_status_service_spec.rb
+++ b/spec/services/post_status_service_spec.rb
@@ -200,7 +200,7 @@ RSpec.describe PostStatusService, type: :service do
     status = subject.call(
       account,
       text: "test status update",
-      media_ids: [media.id],
+      media_ids: [media.id]
     )
 
     expect(media.reload.status).to eq status
@@ -213,7 +213,7 @@ RSpec.describe PostStatusService, type: :service do
     status = subject.call(
       account,
       text: "test status update",
-      media_ids: [media.id],
+      media_ids: [media.id]
     )
 
     expect(media.reload.status).to eq nil
@@ -232,11 +232,11 @@ RSpec.describe PostStatusService, type: :service do
           Fabricate(:media_attachment, account: account),
           Fabricate(:media_attachment, account: account),
           Fabricate(:media_attachment, account: account),
-        ].map(&:id),
+        ].map(&:id)
       )
     end.to raise_error(
       Mastodon::ValidationError,
-      I18n.t('media_attachments.validations.too_many'),
+      I18n.t('media_attachments.validations.too_many')
     )
   end
 
@@ -254,11 +254,11 @@ RSpec.describe PostStatusService, type: :service do
         media_ids: [
           video,
           image,
-        ].map(&:id),
+        ].map(&:id)
       )
     end.to raise_error(
       Mastodon::ValidationError,
-      I18n.t('media_attachments.validations.images_and_video'),
+      I18n.t('media_attachments.validations.images_and_video')
     )
   end