diff options
| author | Teddy Wing | 2017-07-12 11:16:36 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2017-07-12 11:16:36 +0200 | 
| commit | 56877a55d7b3dbe26ec42eb54a968117b3925e3d (patch) | |
| tree | a22e2db58579b79a66c308afceefb5324a75c9f1 /spec/features/referential_lines_spec.rb | |
| parent | ebd714e18ae8e954b5862b5ab70ea47a22674795 (diff) | |
| download | chouette-core-56877a55d7b3dbe26ec42eb54a968117b3925e3d.tar.bz2 | |
referential_lines_spec.rb: Remove `#index` specs
Now that I removed the `ReferentialLinesController#index` method and
template (c7ceb38801b853154cdae31672ff2c105c8b191f), it no longer makes
sense to keep these tests around.
Refs #3479
Diffstat (limited to 'spec/features/referential_lines_spec.rb')
| -rw-r--r-- | spec/features/referential_lines_spec.rb | 39 | 
1 files changed, 0 insertions, 39 deletions
| diff --git a/spec/features/referential_lines_spec.rb b/spec/features/referential_lines_spec.rb index fd003effb..95fc596fd 100644 --- a/spec/features/referential_lines_spec.rb +++ b/spec/features/referential_lines_spec.rb @@ -5,45 +5,6 @@ describe 'ReferentialLines', type: :feature do    login_user    let!(:referential_metadata) { create :referential_metadata, referential: referential } -  describe 'index' do -    before(:each) { visit referential_lines_path(referential) } - -    it 'displays referential lines' do -      expect(page).to have_content(referential.lines.first.name) -      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 -        click_button 'search-btn' -        expect(page).to have_content(referential.lines.first.name) -        expect(page).not_to have_content(referential.lines.last.name) -      end - -      it 'supports filtering by number' do -        fill_in 'q[name_or_number_or_objectid_cont]', with: referential.lines.first.number -        click_button 'search-btn' -        expect(page).to have_content(referential.lines.first.name) -        expect(page).not_to have_content(referential.lines.last.name) -      end - -      it 'supports filtering by objectid' do -        fill_in 'q[name_or_number_or_objectid_cont]', with: referential.lines.first.objectid -        click_button 'search-btn' -        expect(page).to have_content(referential.lines.first.name) -        expect(page).not_to have_content(referential.lines.last.name) -      end -    end -  end -    describe 'show' do      it 'displays referential line' do        visit referential_line_path(referential, referential.lines.first) | 
