Sha256: a29b6d307183eb1dc3c901b38421bdea2fa469d2d68f3785ca2c3005b8c6dbe8

Contents?: true

Size: 878 Bytes

Versions: 8

Compression:

Stored size: 878 Bytes

Contents

require 'spec_helper'

verify = lambda { |output|
  include NokogiriMatchers
  output.should have_tag('h1')
  # TODO: This is the next phase
  #output.should have_tag('h1') do
  #  with_text 'This is a Markdown page'
  #end
}

theories =
  [
    {
      :page => "markdown-page.md",
      :simple_name => "markdown-page",
      :syntax => :markdown,
      :extension => '.html',
      :matcher => verify
    },
    {
      :page => "markdown-page.markdown",
      :simple_name => "markdown-page",
      :syntax => :markdown,
      :extension => '.html',
      :matcher => verify
    },
    {
      :page => "markdown-page.mkd",
      :simple_name => "markdown-page",
      :syntax => :markdown,
      :extension => '.html',
      :matcher => verify
    }
  ]

describe Awestruct::Handlers::TiltHandler.to_s + "-Markdown" do
  
  it_should_behave_like "a handler", theories

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
awestruct-0.5.4.beta1 spec/markdown_handler_spec.rb
awestruct-0.5.3 spec/markdown_handler_spec.rb
awestruct-0.5.2.1 spec/markdown_handler_spec.rb
awestruct-0.5.2 spec/markdown_handler_spec.rb
awestruct-0.5.1 spec/markdown_handler_spec.rb
awestruct-0.5.1a spec/markdown_handler_spec.rb
awestruct-0.5.0 spec/markdown_handler_spec.rb
awestruct-0.5.0.cr spec/markdown_handler_spec.rb