diff options
| author | Robert | 2017-06-02 16:01:57 +0200 |
|---|---|---|
| committer | Robert | 2017-06-02 16:01:57 +0200 |
| commit | b4193e4a246684974ecc4c40a230a07d921c737f (patch) | |
| tree | 7bcf6abba3f6848bcc9f82b5a55cc14c78787db8 /spec/features | |
| parent | 4e791b7c834c65ee968580e0e0281eb97a7c89eb (diff) | |
| download | chouette-core-b4193e4a246684974ecc4c40a230a07d921c737f.tar.bz2 | |
Merge branch 'master' of github.com:af83/stif-boiv
Diffstat (limited to 'spec/features')
| -rw-r--r-- | spec/features/calendars_spec.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/spec/features/calendars_spec.rb b/spec/features/calendars_spec.rb index 2089939bb..e15624295 100644 --- a/spec/features/calendars_spec.rb +++ b/spec/features/calendars_spec.rb @@ -19,12 +19,20 @@ describe 'Calendars', type: :feature do context 'filtering' do it 'supports filtering by short name' do - fill_in 'q[short_name_cont]', with: calendars.first.short_name + fill_in 'q[name_or_short_name_cont]', with: calendars.first.short_name click_button 'search_btn' expect(page).to have_content(calendars.first.short_name) expect(page).not_to have_content(calendars.last.short_name) end + it 'supports filtering by name' do + fill_in 'q[name_or_short_name_cont]', with: calendars.first.name + click_button 'search_btn' + expect(page).to have_content(calendars.first.name) + expect(page).not_to have_content(calendars.last.name) + end + + it 'supports filtering by shared' do shared_calendar = create :calendar, organisation_id: 1, shared: true visit calendars_path |
