Sha256: d292d46d1a854b8286b7e9a9a8857eac5ce296ca925bac0d4f7f8b0c4754a633
Contents?: true
Size: 517 Bytes
Versions: 33
Compression:
Stored size: 517 Bytes
Contents
require 'spec_helper' describe PagesHelper do describe '#search_page_form' do context 'without block' do it 'renders the default search form' do form = search_page_form form.should have_css('form.form-inline') form.should have_css('input[type=text]') form.should 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
33 entries across 33 versions & 2 rubygems