Sha256: 8633db83a479c7c01b4523a27a9110f1a0b13d2382a0eb725dfb00cd41afeb37
Contents?: true
Size: 477 Bytes
Versions: 1
Compression:
Stored size: 477 Bytes
Contents
require 'spec_helper' describe BootstrapIt::ViewHelpers::Breadcrumb do it { expect(helper.render).to have_tag 'ol.breadcrumb' } it { expect(helper).to be_kind_of WrapIt::Container } it 'renders active items' do expect(helper { |h| h.item :active }.render).to have_tag 'ol > li.active' end it 'reders links' do expect( helper { |h| h.link_item 'test', 'http://url' }.render ).to have_tag 'ol > li > a[@href="http://url"][text()="test"]' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bootstrap_it-0.1.2 | spec/view_helpers/breadcrumb_spec.rb |