Sha256: 4408546ce081fd9d4f9ba1715f169ab2340a71fd46935453c0e2b8f25dec23c9
Contents?: true
Size: 722 Bytes
Versions: 1
Compression:
Stored size: 722 Bytes
Contents
# frozen_string_literal: true require 'rails_helper' RSpec.describe Breadcrumby::Viewer, '.item' do subject { described_class.new object } let!(:content) { :content } let!(:object) { build :school } it 'returns a item element as node of the list' do expect(subject.item(content)).to have_tag :li, with: { itemprop: :itemListElement, itemscope: :itemscope, itemtype: 'http://schema.org/ListItem' } do with_text :content end end context 'when options is given' do let!(:options) { { alt: :custom } } it 'is used' do expect(subject.item(content, options)).to have_tag :li, with: { alt: :custom } do with_text :content end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
breadcrumby-0.1.0 | spec/lib/breadcrumby/models/viewer/item_spec.rb |