Sha256: f2eb2c4af9087cb0f7a4150595e0a600124d46b01b8d823809ea5d0ba8c25be5

Contents?: true

Size: 376 Bytes

Versions: 4

Compression:

Stored size: 376 Bytes

Contents

require "spec_helper"

describe Blogit::Parsers::HtmlParser do
  
  let(:parser) { Blogit::Parsers::TextileParser.new("<h2>Some textile</h2>\n<p>A paragraph</p>") }
  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
    expect(parser.parsed).to eq(desired_output)
  end
  
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
blogit-1.1.2 spec/lib/blogit/parsers/html_parser_spec.rb
blogit-1.1.1 spec/lib/blogit/parsers/html_parser_spec.rb
blogit-1.1.0 spec/lib/blogit/parsers/html_parser_spec.rb
blogit-1.0.0 spec/lib/blogit/parsers/html_parser_spec.rb