Sha256: cd43663e732bdff0e4eba8b0a5c0982abb286535a59f160d18faf027e0f1e67c

Contents?: true

Size: 433 Bytes

Versions: 10

Compression:

Stored size: 433 Bytes

Contents

require 'spec_helper'

describe ReverseAsciidoctor::Converters::Code do

  let(:converter) { ReverseAsciidoctor::Converters::Div.new }

  it 'converts div' do
    node = node_for("<div>puts foo</div>")
    expect(converter.convert(node)).to include "\nputs foo"
  end

  it 'converts div with anchor' do
    node = node_for("<div id='A'>puts foo</div>")
    expect(converter.convert(node)).to include "\n[[A]]\nputs foo"
  end

end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
reverse_adoc-0.2.8 spec/lib/reverse_asciidoctor/converters/div_spec.rb
reverse_adoc-0.2.7 spec/lib/reverse_asciidoctor/converters/div_spec.rb
reverse_adoc-0.2.6 spec/lib/reverse_asciidoctor/converters/div_spec.rb
reverse_adoc-0.2.5 spec/lib/reverse_asciidoctor/converters/div_spec.rb
reverse_adoc-0.2.4 spec/lib/reverse_asciidoctor/converters/div_spec.rb
reverse_adoc-0.2.3 spec/lib/reverse_asciidoctor/converters/div_spec.rb
reverse_asciidoctor-0.2.2 spec/lib/reverse_asciidoctor/converters/div_spec.rb
reverse_asciidoctor-0.2.1 spec/lib/reverse_asciidoctor/converters/div_spec.rb
reverse_asciidoctor-0.2.0 spec/lib/reverse_asciidoctor/converters/div_spec.rb
reverse_asciidoctor-0.1.0 spec/lib/reverse_asciidoctor/converters/div_spec.rb