diff options
Diffstat (limited to 'spec/features')
| -rw-r--r-- | spec/features/lines_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/features/lines_spec.rb b/spec/features/lines_spec.rb index 4ecefab33..f15d33f60 100644 --- a/spec/features/lines_spec.rb +++ b/spec/features/lines_spec.rb @@ -28,21 +28,21 @@ describe "Lines", :type => :feature do context 'filtering' do it 'supports filtering by name' do - fill_in 'q[name_or_number_or_objectid_cont]', with: lines.first.name + fill_in 'q[name_or_objectid_cont]', with: lines.first.name click_button 'search-btn' expect(page).to have_content(lines.first.name) expect(page).not_to have_content(lines.last.name) end it 'supports filtering by number' do - fill_in 'q[name_or_number_or_objectid_cont]', with: lines.first.number + fill_in 'q[name_or_objectid_cont]', with: lines.first.number click_button 'search-btn' expect(page).to have_content(lines.first.name) expect(page).not_to have_content(lines.last.name) end it 'supports filtering by objectid' do - fill_in 'q[name_or_number_or_objectid_cont]', with: lines.first.objectid + fill_in 'q[name_or_objectid_cont]', with: lines.first.objectid click_button 'search-btn' expect(page).to have_content(lines.first.name) expect(page).not_to have_content(lines.last.name) |
