diff options
| author | jpl | 2017-07-04 16:09:51 +0200 |
|---|---|---|
| committer | jpl | 2017-07-04 16:10:05 +0200 |
| commit | 758264a532f84b5820db56a698ccf7910de81107 (patch) | |
| tree | 77f3926e2969e00af27b97861d3bd2b32d97c657 /spec | |
| parent | e9f0dc0a0a5ede199158c6b035e192c555621894 (diff) | |
| download | chouette-core-758264a532f84b5820db56a698ccf7910de81107.tar.bz2 | |
Refs #3961: updating wording
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/features/workbenches_permissions_spec.rb | 8 |
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 } |
