Skip to content

Commit

Permalink
just use translated strings in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kcinay055679 committed Jul 30, 2024
1 parent b046b22 commit 4b34270
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/features/people_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def add_language(language)
accept_confirm do
click_link(I18n.t("people.show.link.delete"), href: person_path(longmax))
end
expect(page).to have_selector('.alert', text: "Person Longmax Smith wurde erfolgreich gelöscht.")
expect(page).to have_selector('.alert', text: I18n.t("crud.destroy.flash.success", model: longmax))
end
end
end

0 comments on commit 4b34270

Please sign in to comment.