Sha256: 70973dc1ca9bd1d1530fdeff41f35983f0826723eacfbe3be9d8f886230632c9

Contents?: true

Size: 1.74 KB

Versions: 28

Compression:

Stored size: 1.74 KB

Contents

Feature: Local Data API
  In order to abstract content from structure

  Scenario: Rendering html
    Given the Server is running at "basic-data-app"
    When I go to "/data.html"
    Then I should see "One:Two"
    When the file "data/test.yml" has the contents
      """
      -
        title: "Three"
      -
        title: "Four"
      """
    When I go to "/data.html"
    Then I should see "Three:Four"
    When the file "data/test.yml" is removed
    When I go to "/data.html"
    Then I should see "No Test Data"

  Scenario: Rendering json
    Given the Server is running at "basic-data-app"
    When I go to "/data3.html"
    Then I should see "One:Two"
    When the file "data/test2.json" has the contents
      """
      [
        { "title": "Three" },
        { "title": "Four" }
      ]
      """
    When I go to "/data3.html"
    Then I should see "Three:Four"
    When the file "data/test2.json" is removed
    When I go to "/data3.html"
    Then I should see "No Test Data"

  Scenario: Using data in config.rb
    Given the Server is running at "data-app"
    When I go to "/test1.html"
    Then I should see "Welcome"

  Scenario: Using data2 in config.rb
    Given the Server is running at "data-app"
    When I go to "/test2.html"
    Then I should see "Welcome"

  Scenario: Using nested data
    Given the Server is running at "nested-data-app"
    When I go to "/test.html"
    Then I should see "title1:Hello"
    Then I should see "title2:More"
    Then I should see "title3:Stuff"

  Scenario: Using data postscript
    Given the Server is running at "nested-data-app"
    When I go to "/extracontent.html"
    Then I should see "<h1>With Content</h1>"
    Then I should see '<h2 id="header-2">Header 2</h2>'
    Then I should see "<p>Paragraph 1</p>"

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
middleman-core-4.3.0.rc.4 features/data.feature
middleman-core-4.3.0.rc.3 features/data.feature
middleman-core-4.3.0.rc.2 features/data.feature
middleman-core-with-external-sources-watch-fix-4.1.10 features/data.feature
middleman-core-with-external-sources-watch-fix-4.1.0 features/data.feature
middleman-core-4.3.0.rc.1 features/data.feature
middleman-core-4.2.1 features/data.feature
middleman-core-4.2.0 features/data.feature
middleman-core-4.1.14 features/data.feature
middleman-core-4.1.13 features/data.feature
middleman-core-4.1.12 features/data.feature
middleman-core-4.1.11 features/data.feature
middleman-core-4.1.10 features/data.feature
middleman-core-4.1.9 features/data.feature
middleman-core-4.1.8 features/data.feature
middleman-core-4.1.7 features/data.feature
middleman-core-4.1.6 features/data.feature
middleman-core-4.1.5 features/data.feature
middleman-core-4.1.3 features/data.feature
middleman-core-4.1.2 features/data.feature