Skip to content

Commit

Permalink
Use i18n key
Browse files Browse the repository at this point in the history
  • Loading branch information
binarygit committed Jul 30, 2024
1 parent 60f21e5 commit a5ffba4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions spec/dummy/config/locales/avo.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ en:
attach_item: Attach %{item}
attachment_class_attached: "%{attachment_class} attached."
attachment_class_detached: "%{attachment_class} detached."
attachment_failed: "Failed to attach %{attachment_class}"
attachment_destroyed: Attachment destroyed
cancel: Cancel
choose_a_country: Choose a country
Expand Down
2 changes: 1 addition & 1 deletion spec/features/avo/has_many_field_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
click_button "Attach"
}.not_to change(StorePatron, :count)

expect(page).to have_text "Attachment unsuccessful"
expect(page).to have_text "Failed to attach User"

select user.name
fill_in id: "fields_review", with: "Toilet paper is phenomenal here."
Expand Down

0 comments on commit a5ffba4

Please sign in to comment.