Sha256: c1a244f7c3723dc5be8684b249c6fb376e3c90b60e2cb4db8c90d162890317be

Contents?: true

Size: 418 Bytes

Versions: 8

Compression:

Stored size: 418 Bytes

Contents

require 'spec_helper'

describe ReverseMarkdown::Mapper do

  let(:input)    { File.read('spec/assets/from_the_wild.html') }
  let(:document) { Nokogiri::HTML(input) }
  subject { ReverseMarkdown.parse_string(input) }

  it "should make sense of strong-crazy markup (as seen in the wild)" do
    subject.should ==
      '** .' + "  \n" +
      '\*\*\* intentcast ** : logo design' + "  \n" +
      '** . **'
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
reverse_markdown-0.4.7 spec/components/from_the_wild_spec.rb
reverse_markdown-0.4.6 spec/components/from_the_wild_spec.rb
reverse_markdown-0.4.5 spec/components/from_the_wild_spec.rb
reverse_markdown-0.4.4 spec/components/from_the_wild_spec.rb
reverse_markdown-0.4.3 spec/components/from_the_wild_spec.rb
reverse_markdown-0.4.2 spec/components/from_the_wild_spec.rb
reverse_markdown-0.4.1 spec/components/from_the_wild_spec.rb
reverse_markdown-0.4.0 spec/components/from_the_wild_spec.rb