Sha256: c1ff36df63c2ed4ccdc8d0ba69d1e0eccb7149442700cfaea7e487f20f8cad31

Contents?: true

Size: 503 Bytes

Versions: 1

Compression:

Stored size: 503 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 { subject.should include '[Foobar](http://foobar.com)' }
  it { subject.should include '[**Strong foobar**](http://strong.foobar.com)' }
  it { subject.should include '![http://foobar.com/logo.png]' }
  it { subject.should include '![foobar image][http://foobar.com/foobar.png]' }

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
reverse_markdown-0.3.0 spec/components/anchors_spec.rb