Skip to content

Commit

Permalink
fix: standardrb fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaeliga committed Oct 23, 2024
1 parent 7a4b6f5 commit 59bb830
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/system/avo/trix_field_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@
it "contains js alert messages translated" do
visit "/admin/resources/posts/#{post.id}/edit"

upload_warning_message = find("[data-trix-field-upload-warning-value]")[:'data-trix-field-upload-warning-value']
upload_warning_message = find("[data-trix-field-upload-warning-value]")[:"data-trix-field-upload-warning-value"]
expect(upload_warning_message).to eq I18n.t("avo.you_cant_upload_new_resource")

attachment_disable_message = find("[data-trix-field-attachment-disable-warning-value]")[:'data-trix-field-attachment-disable-warning-value']
attachment_disable_message = find("[data-trix-field-attachment-disable-warning-value]")[:"data-trix-field-attachment-disable-warning-value"]
expect(attachment_disable_message).to eq I18n.t("avo.this_field_has_attachments_disabled")

attachment_key_warning_message = find("[data-trix-field-attachment-key-warning-value]")[:'data-trix-field-attachment-key-warning-value']
attachment_key_warning_message = find("[data-trix-field-attachment-key-warning-value]")[:"data-trix-field-attachment-key-warning-value"]
expect(attachment_key_warning_message).to eq I18n.t("avo.you_havent_set_attachment_key")
end
end
Expand Down

0 comments on commit 59bb830

Please sign in to comment.