Sha256: bf10c142a96523aca8ccdfadb09aaf350a5201df877db408b6a1ae12b98d0781

Contents?: true

Size: 292 Bytes

Versions: 5

Compression:

Stored size: 292 Bytes

Contents

# encoding: utf-8

RSpec.describe Loaf::ViewExtensions, '.breadcrumb?' do
  it 'checks for breadcrumbs existance' do
    instance = DummyView.new
    expect(instance.breadcrumbs?).to eq(false)
    instance.breadcrumb 'Home', :home_path
    expect(instance.breadcrumbs?).to eq(true)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
loaf-0.8.1 spec/unit/view_extensions/has_breadcrumbs_spec.rb
loaf-0.8.0 spec/unit/view_extensions/has_breadcrumbs_spec.rb
loaf-0.7.0 spec/unit/view_extensions/has_breadcrumbs_spec.rb
loaf-0.6.2 spec/unit/view_extensions/has_breadcrumbs_spec.rb
loaf-0.6.1 spec/unit/view_extensions/has_breadcrumbs_spec.rb