aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorjpl2017-07-04 16:09:51 +0200
committerjpl2017-07-04 16:10:05 +0200
commit758264a532f84b5820db56a698ccf7910de81107 (patch)
tree77f3926e2969e00af27b97861d3bd2b32d97c657 /spec
parente9f0dc0a0a5ede199158c6b035e192c555621894 (diff)
downloadchouette-core-758264a532f84b5820db56a698ccf7910de81107.tar.bz2
Refs #3961: updating wording
Diffstat (limited to 'spec')
-rw-r--r--spec/features/workbenches_permissions_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/features/workbenches_permissions_spec.rb b/spec/features/workbenches_permissions_spec.rb
index 962ffdedc..d58293538 100644
--- a/spec/features/workbenches_permissions_spec.rb
+++ b/spec/features/workbenches_permissions_spec.rb
@@ -18,20 +18,20 @@ describe 'Workbenches', type: :feature do
context 'on show view' do
let( :path ){ workbench_path(workbench) }
- context 'if present → ' do
+ context 'if present → ' do
let( :permission ){ true }
it 'shows the corresponding button' do
expected_href = new_referential_path(workbench_id: workbench)
- expect( page ).to have_link('Ajouter', href: expected_href)
+ expect( page ).to have_link('Créer', href: expected_href)
end
end
- context 'if absent → ' do
+ context 'if absent → ' do
let( :permission ){ false }
it 'does not show the corresponding button' do
- expect( page ).not_to have_link('Ajouter')
+ expect( page ).not_to have_link('Créer')
end
end
# let!(:ready_referential) { create :referential, workbench: workbench, metadatas: referential_metadatas, ready: true, organisation: @user.organisation }