Sha256: d90dee6ef5d1f7e902d40528a8e50a4bb44effbbe3dca0e158136bec9b817554

Contents?: true

Size: 455 Bytes

Versions: 32

Compression:

Stored size: 455 Bytes

Contents

require 'spec_helper'
require 'org-ruby'

verify = lambda { |output|
   output.should =~ %r(<h1>Fruit</h1>)
   output.should =~ %r(<p>Apples are red</p>)
}

theories =
  [
    {
      :page => "orgmode-page.org",
      :simple_name => "orgmode-page",
      :syntax => :orgmod,
      :extension => '.html',
      :matcher => verify
    }
  ]

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

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
awestruct-0.5.6.beta5 spec/awestruct/handlers/orgmode_handler_spec.rb
awestruct-0.5.6.beta4 spec/awestruct/handlers/orgmode_handler_spec.rb
awestruct-0.5.6.beta3 spec/awestruct/handlers/orgmode_handler_spec.rb
awestruct-0.5.6.beta2 spec/awestruct/handlers/orgmode_handler_spec.rb
awestruct-0.5.6.beta spec/awestruct/handlers/orgmode_handler_spec.rb
awestruct-0.5.5 spec/awestruct/handlers/orgmode_handler_spec.rb
awestruct-0.5.4.2 spec/awestruct/handlers/orgmode_handler_spec.rb
awestruct-0.5.4.1 spec/awestruct/handlers/orgmode_handler_spec.rb
awestruct-0.5.4 spec/awestruct/handlers/orgmode_handler_spec.rb
awestruct-0.5.4.rc3 spec/orgmode_handler_spec.rb
awestruct-0.5.4.rc2 spec/orgmode_handler_spec.rb
awestruct-0.5.4.rc spec/orgmode_handler_spec.rb