Sha256: 05d17fe36a6680139d192fccd09950ffae2bca4f28223efae42b5bf163ff0040

Contents?: true

Size: 925 Bytes

Versions: 10

Compression:

Stored size: 925 Bytes

Contents

Feature: Add meta data fields

  As a creator of a presentation
  I want to use meta data from configuration
  In order to display them on the slides

  Background:
    Given I use presentation fixture "simple1" with title "My Presentation"

  Scenario: Generate meta data
    Given a presentation config file for middleman-presentation with:
    """
    author: 'Max'
    """
    And a slide named "01.html.erb" with:
    """
    <section>
    <%= metadata_markup([:author], [:author]) %>
    </section>
    """
    When the Server is running
    And I go to "/"
    Then I should see:
    """
    Max
    """

  Scenario: Unknown field
    Given a slide named "01.html.erb" with:
    """
    <section>
    <%= metadata_markup([:author], []) %>
    </section>
    """
    When the Server is running
    And I go to "/" and see the following error message:
    """
    You entered an unknown metadata field "author".
    """

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
middleman-presentation-helpers-0.17.7 features/metadata.feature
middleman-presentation-helpers-0.17.6 features/metadata.feature
middleman-presentation-helpers-0.17.2 features/metadata.feature
middleman-presentation-helpers-0.17.1 features/metadata.feature
middleman-presentation-helpers-0.17.0 features/metadata.feature
middleman-presentation-helpers-0.16.3 features/metadata.feature
middleman-presentation-helpers-0.16.2 features/metadata.feature
middleman-presentation-helpers-0.16.0 features/metadata.feature
middleman-presentation-helpers-0.16.0.rc2 features/metadata.feature
middleman-presentation-helpers-0.1.0.rc1 features/metadata.feature