From 55468b29bb5b23bfeb8ebe439ed62e5214284a3d Mon Sep 17 00:00:00 2001 From: jpl Date: Mon, 13 Feb 2017 15:32:06 +0100 Subject: Refs #2597: updatings line_referentials#show, according to new AD --- spec/features/routes_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'spec/features/routes_spec.rb') 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 -- cgit v1.2.3