spec/mastalk_spec.rb in mastalk-0.7.0 vs spec/mastalk_spec.rb in mastalk-0.8.0
- old
+ new
@@ -100,10 +100,10 @@
context 'two callouts after each other' do
let(:source) { "$~callout\n ##yes ~$ $~callout\n ##yes ~$" }
let(:expected) do
- %Q(<div class="callout">\n <h2>yes</h2>\n\n</div>\n<div class="callout">\n <h2>yes</h2>\n\n</div>\n)
+ %Q(<div class="callout">\n <span class="callout__icon" aria-hidden="true">?</span>\n <h2>yes</h2>\n\n</div>\n<div class="callout">\n <span class="callout__icon" aria-hidden="true">?</span>\n <h2>yes</h2>\n\n</div>\n)
end
it 'pre-processes correctly, without adding ids to headings' do
expect(subject.to_html).to eq(expected)
end