Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Commit

Permalink
BAU: Remove unnecessary args to translate
Browse files Browse the repository at this point in the history
We've bumped the version of the `i18n` module from 1.8.5 to 1.8.9.
Version [1.8.6](https://github.com/ruby-i18n/i18n/releases/tag/v1.8.6)
introduced a change to the parameters for the `translate` method. It
removed the `*` operator, which allows any number of args to be passed
in. These args were just discarded.

You can see the change to the source here: ruby-i18n/i18n#545

We were passing in an extra arg in a couple of places in our tests. This
removes them and prevents an `ArgumentError` being thrown.
  • Loading branch information
Wynndow committed Mar 3, 2021
1 parent 0357fbc commit f76e687
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@

it "navigates to select documents page" do
visit select_documents_advice_path
click_link t("hub.select_documents_advice.what_to_do_next.change_your_answers_link", select_documents_path)
click_link t("hub.select_documents_advice.what_to_do_next.change_your_answers_link")
expect(page).to have_current_path(select_documents_path)
end

it "navigates to prove your identity another way page" do
visit select_documents_advice_path
click_link t("hub.select_documents_advice.what_to_do_next.prove_your_identity_link", prove_your_identity_another_way_path)
click_link t("hub.select_documents_advice.what_to_do_next.prove_your_identity_link")
expect(page).to have_current_path(prove_your_identity_another_way_path)
end

Expand Down

0 comments on commit f76e687

Please sign in to comment.