Sha256: b8f752005d98f25aed69e08e2f6f62d8e21c3841233f8316f9f1b98774605a26

Contents?: true

Size: 543 Bytes

Versions: 16

Compression:

Stored size: 543 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

16 entries across 16 versions & 1 rubygems

Version Path
qbrick-2.7.1 spec/helpers/qbrick/pages_helper_spec.rb
qbrick-2.7 spec/helpers/qbrick/pages_helper_spec.rb
qbrick-2.6.10 spec/helpers/qbrick/pages_helper_spec.rb
qbrick-2.6.9 spec/helpers/qbrick/pages_helper_spec.rb
qbrick-2.6.8 spec/helpers/qbrick/pages_helper_spec.rb
qbrick-2.6.7 spec/helpers/qbrick/pages_helper_spec.rb
qbrick-2.6.6 spec/helpers/qbrick/pages_helper_spec.rb
qbrick-2.6.5 spec/helpers/qbrick/pages_helper_spec.rb
qbrick-2.6.4 spec/helpers/qbrick/pages_helper_spec.rb
qbrick-2.6.3 spec/helpers/qbrick/pages_helper_spec.rb
qbrick-2.6.2 spec/helpers/qbrick/pages_helper_spec.rb
qbrick-2.6.1 spec/helpers/qbrick/pages_helper_spec.rb
qbrick-2.6.0 spec/helpers/qbrick/pages_helper_spec.rb
qbrick-2.5.2 spec/helpers/qbrick/pages_helper_spec.rb
qbrick-2.5.1 spec/helpers/qbrick/pages_helper_spec.rb
qbrick-2.5.0 spec/helpers/qbrick/pages_helper_spec.rb