refactor(links): use FAQ URL locale everywhere

This commit is contained in:
François Vantomme 2023-01-09 16:48:06 +01:00 committed by LeSim
parent ffeb2083f0
commit faa5dda761
6 changed files with 10 additions and 10 deletions

View file

@ -23,7 +23,7 @@ describe 'layouts/_header.html.haml', type: :view do
it { is_expected.to_not have_css(".account-btn") }
it 'displays the Help link' do
expect(subject).to have_link('Aide', href: FAQ_URL)
expect(subject).to have_link('Aide', href: I18n.t("links.footer.faq.url"))
end
context 'when on a procedure page' do
@ -48,7 +48,7 @@ describe 'layouts/_header.html.haml', type: :view do
it { is_expected.to have_selector(:button, user.email, class: "account-btn") }
it 'displays the Help button' do
expect(subject).to have_link("Aide", href: FAQ_URL)
expect(subject).to have_link("Aide", href: I18n.t("links.footer.faq.url"))
end
end