Sha256: aad7c0f63ebe2b2275dc12b0c7b0ce3c1a217e43b3672c4409655fce228a79cf

Contents?: true

Size: 893 Bytes

Versions: 2

Compression:

Stored size: 893 Bytes

Contents

Feature: Haml :code filter.

  Scenario: Filter works and preserved indentation
    Given a fixture app "test-app"
    And a file named "config.rb" with:
      """
      set :haml, { :ugly => false }
      activate :syntax
      """
    Given the Server is running at "test-app"
    When I go to "/code_haml_filter.html"
    Then I should see '<span class="k">def</span>'
    Then I should see '<pre class="highlight plaintext"><code>This is some code'

  Scenario: Filter doesn't keep trailing blank lines
    Given a fixture app "test-app"
    And a file named "config.rb" with:
      """
      set :haml, { :ugly => false }
      activate :syntax
      """
    Given the Server is running at "test-app"
    When I go to "/code_haml_filter.html"
    Then I should see '<span class="k">def</span>'
    Then I should see '<pre class="highlight plaintext"><code>This is some code</code></pre>'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
middleman-syntax-3.4.0 features/haml_filter.feature
middleman-syntax-3.3.0 features/haml_filter.feature