Sha256: 95279c61c21045d9535a87b78772619cb332474a7e9050c34988d6ffe077dc88

Contents?: true

Size: 519 Bytes

Versions: 1

Compression:

Stored size: 519 Bytes

Contents

require 'spec_helper'

describe ReverseMarkdown::Mapper do

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

  it { subject.should match /- unordered list entry\n/ }
  it { subject.should match /1. ordered list entry\n/ }
  it { subject.should match /1. list entry 1st hierarchy\n/ }
  it { subject.should match /\s{2}- nested unsorted list entry/ }
  it { subject.should match /\s{4}1. deep nested list entry/ }

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
reverse_markdown-0.3.0 spec/components/lists_spec.rb