Sha256: a6f46fc7a648ed3ff7d5d503f3da3f5cdf12b7f8ae13e2c09ec76e73982ca7bd
Contents?: true
Size: 544 Bytes
Versions: 7
Compression:
Stored size: 544 Bytes
Contents
require 'spec_helper' describe PagesHelper, type: :helper do describe '#search_page_form' do context 'without block' do it 'renders the default search form' do form = search_page_form expect(form).to have_css('form.form-inline') expect(form).to have_css('input[type=text]') expect(form).to have_css('input[type=submit]') end end context 'with block' do it 'calls the given block' do expect { |b| search_page_form(&b) }.to yield_with_no_args end end end end
Version data entries
7 entries across 7 versions & 1 rubygems