Sha256: 23a678095d37eae7d900982e4c7e5aa01752e02492b3cf569c0a8e59a9cca6b4

Contents?: true

Size: 369 Bytes

Versions: 1

Compression:

Stored size: 369 Bytes

Contents

require "spec_helper"

describe Blogit::Parsers::MarkdownParser do
  
  let(:parser) { Blogit::Parsers::MarkdownParser.new("## Some textile\n\nA paragraph") }
  let(:desired_output) { "<h2>Some textile</h2>\n\n<p>A paragraph</p>\n" }
  
  it "should return an html string of content passed when calling parsed" do
    parser.parsed.should == desired_output
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
blogit-0.0.4 spec/lib/parsers/markdown_parser_spec.rb