Sha256: 4aa3f5e6d97c5c81441308ca7c9b929edd3fb287f3f53786c992f594337be3ad

Contents?: true

Size: 711 Bytes

Versions: 10

Compression:

Stored size: 711 Bytes

Contents

require 'spec_helper'

describe ReverseAsciidoctor do

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

  context "multiple asterisks" do
    it { is_expected.to include ' \*\*two asterisks\*\* ' }
    it { is_expected.to include ' \*\*\*three asterisks\*\*\* ' }
  end

  context "multiple underscores" do
    it { is_expected.to include ' \_\_two underscores\_\_ ' }
    it { is_expected.to include ' \_\_\_three underscores\_\_\_ ' }
  end

  context "underscores within words in code blocks" do
    it { is_expected.to include "....\n<code>var theoretical_max_infin = 1.0;</code>\n....\n" }
  end

end

Version data entries

10 entries across 10 versions & 2 rubygems

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