Sha256: c23169bd8bf2c4f87e563e0d12a352de3419d4e290816e17aebaef0db0ff3feb
Contents?: true
Size: 1.1 KB
Versions: 2
Compression:
Stored size: 1.1 KB
Contents
require 'test_helper' class SearchingTest < ActionDispatch::IntegrationTest vcr_test "search box should give search results", "searches", cassette: 'printing' do visit root_path within('#quicksearch') do fill_in :q, with: 'printing' click_on('Search') assert page.has_content?('Articles') end end vcr_test "should have article results", "searches", cassette: 'printing' do visit root_path within('#quicksearch') do fill_in :q, with: 'printing' click_on('Search') assert page.has_content?('Beginning Os X Lion Apps ') end end vcr_test "should present a spelling suggestion", "searches", cassette: 'speling' do visit root_path within('#quicksearch') do fill_in :q, with: 'speling' click_on('Search') assert page.has_content?('Did you mean') end end vcr_test "should have FAQ results", "searches", cassette: 'printing' do visit root_path within('#quicksearch') do fill_in :q, with: 'printing' click_on('Search') assert page.has_content?('Where is the Makerspace in Hunt Library') end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
quick_search-core-0.0.1 | test/integration/searching_test.rb |
quick_search-core-0.0.1.test | test/integration/searching_test.rb |