Sha256: c6c56a6b3f8195926cf0e397bcc436544cb38b93e69c88f631de27294b764ca2
Contents?: true
Size: 1.07 KB
Versions: 2
Compression:
Stored size: 1.07 KB
Contents
require 'spec_helper' describe BootstrapIt::ViewHelpers::Pagination do it { expect(helper).to render_with 'ul.pagination' } it { expect(helper).to be_kind_of WrapIt::Container } it { expect(helper).to be_kind_of BootstrapIt::ViewHelpers::Sizable } it 'renders links' do expect(helper { |h| h.link_item 'test', 'http://url' }).to render_with( 'ul > li > a[@href="http://url"][text()="test"]' ) end end describe BootstrapIt::ViewHelpers::Pager do it { expect(helper).to render_with 'ul.pager' } it { expect(helper).to be_kind_of WrapIt::Container } it 'renders links' do expect(helper { |h| h.link_item 'test', 'http://url' }).to render_with( 'ul > li > a[@href="http://url"][text()="test"]' ) end it 'renders previous' do expect(helper { |h| h.previous 'test', 'http://url' }).to render_with( 'ul > li.previous > a[@href="http://url"][text()="test"]' ) end it 'renders next' do expect(helper { |h| h.next 'test', 'http://url' }).to render_with( 'ul > li.next > a[@href="http://url"][text()="test"]' ) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bootstrap_it-0.1.1 | spec/view_helpers/pagination_spec.rb |
bootstrap_it-0.1.0 | spec/view_helpers/pagination_spec.rb |