fix(contact): translate captcha honeypot label

This commit is contained in:
Colin Darie 2022-07-28 12:31:55 +02:00
parent 0641069d0b
commit bc7cdb6b8e
5 changed files with 6 additions and 6 deletions

View file

@ -122,7 +122,7 @@ describe SupportController, type: :controller do
let(:params) { { subject: 'bonjour', text: 'un message', InvisibleCaptcha.honeypots.sample => 'boom' } }
it 'does not create a conversation on HelpScout' do
expect { subject }.not_to change(Commentaire, :count)
expect(flash[:alert]).to eq(I18n.t('invisible_captcha.custom_message'))
expect(flash[:alert]).to eq(I18n.t('invisible_captcha.sentence_for_humans'))
end
end
end