Sha256: 6f736ed0098298e9e3a8882798f922d82dedfe9f488f6c45d03099b19aff65e8

Contents?: true

Size: 351 Bytes

Versions: 13

Compression:

Stored size: 351 Bytes

Contents

require 'spec_helper'

describe ReverseMarkdown do

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

  it { is_expected.to match /^    Block of code$/ }
  it { is_expected.to include "\n> First quoted paragraph\n> \n> Second quoted paragraph" }

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
reverse_markdown-2.0.0 spec/components/quotation_spec.rb
reverse_markdown-1.4.0 spec/components/quotation_spec.rb
reverse_markdown-1.3.0 spec/components/quotation_spec.rb
reverse_markdown-1.2.0 spec/components/quotation_spec.rb
reverse_markdown-1.1.0 spec/components/quotation_spec.rb
reverse_markdown-1.0.5 spec/components/quotation_spec.rb
reverse_markdown-1.0.4 spec/components/quotation_spec.rb
reverse_markdown-1.0.3 spec/components/quotation_spec.rb
reverse_markdown-1.0.2 spec/components/quotation_spec.rb
reverse_markdown-1.0.1 spec/components/quotation_spec.rb
reverse_markdown-1.0.0 spec/components/quotation_spec.rb
reverse_markdown-0.8.2 spec/components/quotation_spec.rb
reverse_markdown-0.8.1 spec/components/quotation_spec.rb