Sha256: 6d83d8c0728aa31c6fb039c229a4233f1155594dc0bca382efc3cb1d075a3539
Contents?: true
Size: 999 Bytes
Versions: 1
Compression:
Stored size: 999 Bytes
Contents
require 'spec_helper' describe ReverseMarkdown::Mapper do let(:input) { File.read('spec/assets/anchors.html') } let(:document) { Nokogiri::HTML(input) } subject { ReverseMarkdown.parse_string(input) } it { should include ' [Foobar](http://foobar.com) ' } it { should include ' [Fubar](http://foobar.com "f***** up beyond all recognition") ' } it { should include ' [**Strong foobar**](http://strong.foobar.com) ' } it { should include '  ' } it { should include '  ' } it { should include '  ' } context "links to ignore" do it { should include ' ignore anchor tags with no link text ' } it { should include ' pass through the text of internal jumplinks without treating them as links ' } it { should include ' pass through the text of anchor tags with no href without treating them as links ' } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
reverse_markdown-0.4.0 | spec/components/anchors_spec.rb |