diff options
| author | jpl | 2017-02-13 15:32:06 +0100 |
|---|---|---|
| committer | jpl | 2017-02-13 15:32:06 +0100 |
| commit | 55468b29bb5b23bfeb8ebe439ed62e5214284a3d (patch) | |
| tree | f6877faad540ee98fcbd726ec7592367fb00a93c /spec/features/routes_spec.rb | |
| parent | 1091a971433fd706941585ac011ee72e6cd2bb73 (diff) | |
| download | chouette-core-55468b29bb5b23bfeb8ebe439ed62e5214284a3d.tar.bz2 | |
Refs #2597: updatings line_referentials#show, according to new AD
Diffstat (limited to 'spec/features/routes_spec.rb')
| -rw-r--r-- | spec/features/routes_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/features/routes_spec.rb b/spec/features/routes_spec.rb index 0e398feb3..af0a4520a 100644 --- a/spec/features/routes_spec.rb +++ b/spec/features/routes_spec.rb @@ -94,7 +94,7 @@ describe "Routes", :type => :feature do context 'user has permission to edit routes' do it 'shows edit buttons for routes' do - expect(page).to have_css('span.fa.fa-pencil') + expect(page).to have_content(I18n.t('actions.edit')) end end @@ -102,7 +102,7 @@ describe "Routes", :type => :feature do it 'does not show edit buttons for routes' do @user.update_attribute(:permissions, []) visit referential_line_path(referential, line) - expect(page).not_to have_css('span.fa.fa-pencil') + expect(page).not_to have_content(I18n.t('actions.edit')) end end @@ -128,7 +128,7 @@ describe "Routes", :type => :feature do context 'user has permission to destroy routes' do it 'shows destroy buttons for routes' do - expect(page).to have_css('span.fa.fa-trash-o') + expect(page).to have_content(I18n.t('actions.edit')) end end @@ -136,7 +136,7 @@ describe "Routes", :type => :feature do it 'does not show destroy buttons for routes' do @user.update_attribute(:permissions, []) visit referential_line_path(referential, line) - expect(page).not_to have_css('span.fa.fa-trash-o') + expect(page).not_to have_content(I18n.t('actions.destroy')) end end end |
