aboutsummaryrefslogtreecommitdiffstats
path: root/spec/features/workbenches_spec.rb
diff options
context:
space:
mode:
authorjpl2017-04-24 15:54:38 +0200
committerjpl2017-04-24 15:54:38 +0200
commita15f093ac5cc18db24c44f5480b3552357926360 (patch)
tree884a64276e63a2d618cdc427723cd439a5035197 /spec/features/workbenches_spec.rb
parenta6b5d381f5160a7636b076d94886545af55c9fc5 (diff)
downloadchouette-core-a15f093ac5cc18db24c44f5480b3552357926360.tar.bz2
Refs #3149: fixing some tests, contains_date method has to be fixed
Diffstat (limited to 'spec/features/workbenches_spec.rb')
-rw-r--r--spec/features/workbenches_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/features/workbenches_spec.rb b/spec/features/workbenches_spec.rb
index 0a71a0b6b..717be96fa 100644
--- a/spec/features/workbenches_spec.rb
+++ b/spec/features/workbenches_spec.rb
@@ -27,7 +27,7 @@ describe 'Workbenches', type: :feature do
context 'user has the permission to create referentials' do
it 'shows the link for a new referetnial' do
- expect(page).to have_link(I18n.t('referentials.actions.new'), href: new_referential_path(workbench_id: workbenches.first))
+ expect(page).to have_link(I18n.t('actions.add'), href: new_referential_path(workbench_id: workbenches.first))
end
end
@@ -35,7 +35,7 @@ describe 'Workbenches', type: :feature do
it 'does not show the clone link for referetnial' do
@user.update_attribute(:permissions, [])
visit referential_path(referential)
- expect(page).not_to have_link(I18n.t('referentials.actions.new'), href: new_referential_path(workbench_id: workbenches.first))
+ expect(page).not_to have_link(I18n.t('actions.add'), href: new_referential_path(workbench_id: workbenches.first))
end
end
end
@@ -44,7 +44,7 @@ describe 'Workbenches', type: :feature do
it "create a new Referential with a specifed line and period" do
visit workbench_path(workbench)
- click_link "Créer un jeu de données"
+ click_link I18n.t('actions.add')
fill_in "referential[name]", with: "Referential to test creation" # Nom du JDD
fill_in "referential[slug]", with: "test" # Code