Sha256: 43acac5331bf845e37c95edfc69a30f8d00ed194ee34808d547f102fc8f3df2e

Contents?: true

Size: 532 Bytes

Versions: 10

Compression:

Stored size: 532 Bytes

Contents

require 'spec_helper'

describe ReverseAsciidoctor do

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

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

  it "should not over escape * or _" do
    expect(subject).to include 'link:example.com/foo_bar[image::example.com/foo_bar.png[] I\_AM\_HELPFUL]'
  end

end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
reverse_adoc-0.2.8 spec/components/from_the_wild_spec.rb
reverse_adoc-0.2.7 spec/components/from_the_wild_spec.rb
reverse_adoc-0.2.6 spec/components/from_the_wild_spec.rb
reverse_adoc-0.2.5 spec/components/from_the_wild_spec.rb
reverse_adoc-0.2.4 spec/components/from_the_wild_spec.rb
reverse_adoc-0.2.3 spec/components/from_the_wild_spec.rb
reverse_asciidoctor-0.2.2 spec/components/from_the_wild_spec.rb
reverse_asciidoctor-0.2.1 spec/components/from_the_wild_spec.rb
reverse_asciidoctor-0.2.0 spec/components/from_the_wild_spec.rb
reverse_asciidoctor-0.1.0 spec/components/from_the_wild_spec.rb