KatanaCode/blogit-admin

View on GitHub
spec/lib/blogit/parsers/textile_parser_spec.rb

Summary

Maintainability
A
15 mins
Test Coverage
require "spec_helper"

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