Sha256: a9a1bdc7f3ffc89be756343fd03778e4303b6d8127b68e4d5eda5270a7377efd

Contents?: true

Size: 1.47 KB

Versions: 37

Compression:

Stored size: 1.47 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"

Version data entries

37 entries across 37 versions & 2 rubygems

Version Path
middleman-core-3.4.0 features/data.feature
middleman-core-4.0.0.beta.2 features/data.feature
middleman-core-3.3.12 features/data.feature
middleman-core-4.0.0.beta.1 features/data.feature
middleman-core-3.3.11 features/data.feature
middleman-core-3.3.10 features/data.feature
middleman-core-3.3.9 features/data.feature
middleman-core-3.3.8 features/data.feature
middleman-core-4.0.0.alpha.6 features/data.feature
middleman-core-4.0.0.alpha.5 features/data.feature
middleman-core-4.0.0.alpha.4 features/data.feature
middleman-core-4.0.0.alpha.3 features/data.feature
middleman-core-3.3.7 features/data.feature
middleman-core-3.3.6 features/data.feature
middleman-core-4.0.0.alpha.2 features/data.feature
middleman-core-3.3.5 features/data.feature
middleman-core-cj-3.3.6 features/data.feature
middleman-core-cj-3.3.5 features/data.feature
middleman-core-cj-3.3.4 features/data.feature
middleman-core-3.3.4 features/data.feature