diff options
| author | vlatka pavisic | 2016-12-27 12:13:53 +0100 |
|---|---|---|
| committer | vlatka pavisic | 2016-12-27 12:13:53 +0100 |
| commit | 08b68565fb7f82bc7754bd62ad3f72efca6ea62d (patch) | |
| tree | 8ead4709d3ba3378f8bfb044ae05efb06914fde3 /spec/features/lines_spec.rb | |
| parent | 28be322127478599c138a08e818db37fd5f3cd25 (diff) | |
| download | chouette-core-08b68565fb7f82bc7754bd62ad3f72efca6ea62d.tar.bz2 | |
Refs #2260 : LinePolicy changes
Diffstat (limited to 'spec/features/lines_spec.rb')
| -rw-r--r-- | spec/features/lines_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/features/lines_spec.rb b/spec/features/lines_spec.rb index dbc449ccc..4ecefab33 100644 --- a/spec/features/lines_spec.rb +++ b/spec/features/lines_spec.rb @@ -19,6 +19,13 @@ describe "Lines", :type => :feature do expect(page).to have_content(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: lines.first.name |
