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