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

Version Path
qbrick-2.5.0.pre spec/helpers/kuhsaft/pages_helper_spec.rb
kuhsaft-2.4.3 spec/helpers/kuhsaft/pages_helper_spec.rb
kuhsaft-2.4.2 spec/helpers/kuhsaft/pages_helper_spec.rb
kuhsaft-2.4.1 spec/helpers/kuhsaft/pages_helper_spec.rb
kuhsaft-2.4.0 spec/helpers/kuhsaft/pages_helper_spec.rb
kuhsaft-2.3.6 spec/helpers/kuhsaft/pages_helper_spec.rb
kuhsaft-2.3.5 spec/helpers/kuhsaft/pages_helper_spec.rb
kuhsaft-2.3.4 spec/helpers/kuhsaft/pages_helper_spec.rb
kuhsaft-2.3.3 spec/helpers/kuhsaft/pages_helper_spec.rb
kuhsaft-2.3.2 spec/helpers/kuhsaft/pages_helper_spec.rb
kuhsaft-2.3.1 spec/helpers/kuhsaft/pages_helper_spec.rb
kuhsaft-2.3.0 spec/helpers/kuhsaft/pages_helper_spec.rb
kuhsaft-2.2.6 spec/helpers/kuhsaft/pages_helper_spec.rb
kuhsaft-2.2.5 spec/helpers/kuhsaft/pages_helper_spec.rb
kuhsaft-2.2.4 spec/helpers/kuhsaft/pages_helper_spec.rb
kuhsaft-2.2.3 spec/helpers/kuhsaft/pages_helper_spec.rb
kuhsaft-2.2.2 spec/helpers/kuhsaft/pages_helper_spec.rb
kuhsaft-2.2.1 spec/helpers/kuhsaft/pages_helper_spec.rb
kuhsaft-2.2.0 spec/helpers/kuhsaft/pages_helper_spec.rb
kuhsaft-2.1.2 spec/helpers/kuhsaft/pages_helper_spec.rb