Sha256: bf7794df9dcb38a0ab308f5f5b4bfaf01f9f713434a0ed7d72a7cdcc680d9994
Contents?: true
Size: 950 Bytes
Versions: 2
Compression:
Stored size: 950 Bytes
Contents
require 'rails_helper' feature 'Admin lock events search' do background do create :venue, title: 'Empire State Building' create :event, title: 'Ruby Newbies', start_time: Time.zone.now create :event, title: 'Ruby Privateers', start_time: Time.zone.now, locked: true page.driver.browser.basic_authorize Calagator.admin_username, Calagator.admin_password visit '/admin/events' end scenario 'only shows query matches' do fill_in 'admin_search_field', with: 'Privateers' click_on 'Search' expect(page).to_not have_content('Ruby Newbies') expect(page).to have_content('Ruby Privateers') end scenario 'only shows query matches after lock/unlock' do fill_in 'admin_search_field', with: 'Privateers' click_on 'Search' click_on 'Unlock' expect(page).to have_button('Lock') expect(page).to have_content('Ruby Privateers') expect(page).to_not have_content('Ruby Newbies') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
calagator-1.1.0 | spec/features/admin_search_event_spec.rb |
calagator-1.0.0 | spec/features/admin_search_event_spec.rb |