diff options
| author | cedricnjanga | 2018-05-17 05:57:56 -0700 |
|---|---|---|
| committer | Johan Van Ryseghem | 2018-05-23 09:45:40 +0200 |
| commit | 223fb43d3e0bc0a7aba73252f5c44b1a3202a84a (patch) | |
| tree | 165c9c2e0ac24f67897930a29ab135192d9b46a6 /spec | |
| parent | 6cb7f16246db07f36c49b76693d92423f15340e1 (diff) | |
| download | chouette-core-223fb43d3e0bc0a7aba73252f5c44b1a3202a84a.tar.bz2 | |
Refs #5670 Fix I18n on user registration views
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/features/users/user_edit_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/features/users/user_edit_spec.rb b/spec/features/users/user_edit_spec.rb index 14995d8e5..020a4bc57 100644 --- a/spec/features/users/user_edit_spec.rb +++ b/spec/features/users/user_edit_spec.rb @@ -40,8 +40,8 @@ feature 'User edit', :devise do other = FactoryGirl.create(:user, email: 'other@example.com') login_as(me, :scope => :user) visit edit_user_registration_path(other) - expect(page).to have_content 'Votre Profil' - expect(page).to have_field('Email', with: me.email) + expect(page).to have_content I18n.t('devise.registrations.edit.title') + expect(page).to have_field(I18n.t('simple_form.labels.user.email'), with: me.email) end end |
