diff options
Diffstat (limited to 'spec/features/referential_lines_spec.rb')
| -rw-r--r-- | spec/features/referential_lines_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/features/referential_lines_spec.rb b/spec/features/referential_lines_spec.rb index 7743ad67e..580891c69 100644 --- a/spec/features/referential_lines_spec.rb +++ b/spec/features/referential_lines_spec.rb @@ -13,6 +13,13 @@ describe 'ReferentialLines', type: :feature do expect(page).to have_content(referential.lines.last.name) end + it 'allows only R in CRUD' do + expect(page).to have_content(I18n.t('actions.show')) + expect(page).not_to have_content(I18n.t('actions.edit')) + expect(page).not_to have_content(I18n.t('actions.destroy')) + expect(page).not_to have_content(I18n.t('actions.add')) + end + context 'filtering' do it 'supports filtering by name' do fill_in 'q[name_or_number_or_objectid_cont]', with: referential.lines.first.name |
