spec/awestruct/handlers/asciidoc_handler_spec.rb in awestruct-0.5.6.beta8 vs spec/awestruct/handlers/asciidoc_handler_spec.rb in awestruct-0.5.6.beta9

- old
+ new

@@ -1,12 +1,13 @@ require 'spec_helper' require 'rspec/matchers.rb' +require 'tilt' verify = lambda { |output| include EmmetMatchers # clean whitespace to make comparison easier - output.should have_structure('div#preamble>div.sectionbody>div.paragraph>p>strong') + output.should have_structure('div.paragraph>p>strong') } verify_front_matter = lambda { |output, page| page.title.should == 'AwestructAsciiDoc' output.should_not =~ %r(title: AwestructAsciiDoc) @@ -119,6 +120,11 @@ def additional_config_page { :name => 'Awestruct', :test => 10, :layout => 'empty-layout' } end it_should_behave_like 'a handler', theories + + it 'should be registered as our implementation for tilt' do + puts ::Tilt.default_mapping['adoc'] + ::Tilt.default_mapping['adoc'].should eql ::Awestruct::Tilt::AsciidoctorTemplate + end end