Sha256: f82f4ad7ffafe84480ffa8ea6f6df42f4d7a1c63a050b56f0edda7ba0c6bce46

Contents?: true

Size: 360 Bytes

Versions: 7

Compression:

Stored size: 360 Bytes

Contents

require_relative 'spec_helper'

describe Kanpachi::Markdown do
  subject do
    Kanpachi::Markdown
  end

  it 'converts markdown text to html' do
    text = '_omg_ __blah__ <http://example.org/test>'
    subject.to_html(text).must_equal %Q{<p><em>omg</em> <strong>blah</strong> <a href=\"http://example.org/test\">http://example.org/test</a></p>\n}
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
kanpachi-0.0.7 spec/markdown_spec.rb
kanpachi-0.0.6 spec/markdown_spec.rb
kanpachi-0.0.5 spec/markdown_spec.rb
kanpachi-0.0.4 spec/markdown_spec.rb
kanpachi-0.0.3 spec/markdown_spec.rb
kanpachi-0.0.2 spec/markdown_spec.rb
kanpachi-0.0.1 spec/markdown_spec.rb