Feature: AsciiDoc Support In order to test included AsciiDoc support Scenario: Rendering html Given the Server is running at "asciidoc-app" When I go to "/hello.html" Then I should see: """

Hello, AsciiDoc! Middleman, I am in you.

""" Scenario: Rendering html with default layout Given a fixture app "asciidoc-app" And a file named "config.rb" with: """ set :layout, :default """ Given the Server is running at "asciidoc-app" When I go to "/hello.html" Then I should see: """ Fallback

Hello, AsciiDoc! Middleman, I am in you.

""" Scenario: Rendering html with explicit layout Given the Server is running at "asciidoc-app" When I go to "/hello-with-layout.html" Then I should see: """ Fallback

Hello, AsciiDoc!

""" Scenario: Rendering html with no layout Given the Server is running at "asciidoc-app" When I go to "/hello-no-layout.html" Then I should see: """

Hello, AsciiDoc!

""" Scenario: Rendering html using title from document Given the Server is running at "asciidoc-app" When I go to "/hello-with-title.html" Then I should see: """ Page Title

Page Title

Hello, AsciiDoc!

""" Scenario: Rendering html with title and layout from front matter Given the Server is running at "asciidoc-app" When I go to "/hello-with-front-matter.html" Then I should see: """ Page Title

Hello, AsciiDoc!

""" Scenario: Including a file relative to source root Given the Server is running at "asciidoc-app" When I go to "/master.html" Then I should see: """
I'm included content.
""" Scenario: Linking to an image Given the Server is running at "asciidoc-app" When I go to "/gallery.html" Then I should see: """
tiger
""" Scenario: Configuring custom AsciiDoc attributes Given a fixture app "asciidoc-app" And a file named "config.rb" with: """ set :asciidoc_attributes, %w(foo=bar) """ Given the Server is running at "asciidoc-app" When I go to "/custom-attribute.html" Then I should see "bar" Scenario: Highlighting source code Given a fixture app "asciidoc-app" And a file named "config.rb" with: """ set :asciidoc_attributes, %w(source-highlighter=html-pipeline) """ Given the Server is running at "asciidoc-app" When I go to "/code.html" Then I should see: """
puts "Is this mic on?"
"""