Sha256: 622f1e3ab9bad7ad0acb751436d9d0ba17cbd1fba67f6e506fca0eb0bdfa8cac

Contents?: true

Size: 421 Bytes

Versions: 2

Compression:

Stored size: 421 Bytes

Contents

require 'spec_helper'

describe Jackb::Markdown do
  
  it 'should render the content from markdown to html' do
    format = Jackb::Markdown.new('My **test**')
    format.render.should eql("<p>My <strong>test</strong></p>\n")
  end
  
  it 'should highlight the code' do
    Jackb::Markdown.new("Hey!\n\n    <%= \"test\" %>").render.
    should eql("<p>Hey!</p>\n\n#{Albino.new('<%= "test" %>', :ruby).to_s}\n")
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jackb-0.0.5 spec/lib/markdown_spec.rb
jackb-0.0.4 spec/lib/markdown_spec.rb