aboutsummaryrefslogtreecommitdiffstats
path: root/spec/features
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/stop_areas_spec.rb12
-rw-r--r--spec/features/users/user_edit_spec.rb4
2 files changed, 8 insertions, 8 deletions
diff --git a/spec/features/stop_areas_spec.rb b/spec/features/stop_areas_spec.rb
index 52040f070..3a47f826f 100644
--- a/spec/features/stop_areas_spec.rb
+++ b/spec/features/stop_areas_spec.rb
@@ -43,30 +43,30 @@ describe "StopAreas", :type => :feature do
describe 'updated stop areas in before block' do
it 'supports displaying only stop areas in creation' do
- find("#q_status_in_creation").set(true)
+ find("#q_by_status_in_creation").set(true)
click_button 'search-btn'
expect(page).not_to have_content(stop_areas.first.name)
expect(page).not_to have_content(stop_areas.last.name)
end
it 'supports displaying only confirmed stop areas' do
- find("#q_status_confirmed").set(true)
+ find("#q_by_status_confirmed").set(true)
click_button 'search-btn'
expect(page).to have_content(stop_areas.first.name)
expect(page).not_to have_content(stop_areas.last.name)
end
it 'supports displaying only deactivated stop areas' do
- find("#q_status_deactivated").set(true)
+ find("#q_by_status_deactivated").set(true)
click_button 'search-btn'
expect(page).not_to have_content(stop_areas.first.name)
expect(page).to have_content(stop_areas.last.name)
end
it 'should display all stop areas if all filters are checked' do
- find("#q_status_in_creation").set(true)
- find("#q_status_confirmed").set(true)
- find("#q_status_deactivated").set(true)
+ find("#q_by_status_in_creation").set(true)
+ find("#q_by_status_confirmed").set(true)
+ find("#q_by_status_deactivated").set(true)
click_button 'search-btn'
expect(page).to have_content(stop_areas.first.name)
expect(page).to have_content(stop_areas.last.name)
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