Sha256: 8ec058af88d4076533cab729bd7d6197521041f1b4a0557908bdcf7b5f3daa37
Contents?: true
Size: 1.23 KB
Versions: 3
Compression:
Stored size: 1.23 KB
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 '  ' } it { should include 'extra space after the [anchor](http://foobar.com).'} it { should include 'But inline, [there](http://foobar.com) should be a space.'} context "links to ignore" do it { should include ' ignore anchor tags with no link text ' } it { should include ' not ignore [  ](foo.html) anchor tags with images' } 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
reverse_markdown-0.4.7 | spec/components/anchors_spec.rb |
reverse_markdown-0.4.6 | spec/components/anchors_spec.rb |
reverse_markdown-0.4.5 | spec/components/anchors_spec.rb |