Sha256: dfdade27b4353c73bf1531431d31b4042db1f777ed85c545c2d60868cbb690cd

Contents?: true

Size: 1.68 KB

Versions: 3

Compression:

Stored size: 1.68 KB

Contents

Feature: Image Gallery

  As a creator of a presentation
  I want to create image galleries easily
  In order to spent as less time as possible on it

  Background:
    Given I create a new presentation with title "My Presentation"
    And an image "image01.png" at "images/image01.png"
    And an image "image02.png" at "images/image02.png"

  Scenario: Images only
    Given a slide named "01.html.erb" with:
    """
    <section>
    <h1>Image Gallery</h1>
    <%= image_gallery %W{images/image01.png images/image02.png}, image_gallery_id: 'test-gallery' %>
    </section>
    """
    And the Server is running
    And I go to "/"
    Then I should see:
    """
    <section>
    <h1>Image Gallery</h1>
    <a href="images/image01.png" data-lightbox="test-gallery">
      <img src="images/image01.png" class="mp-preview-image">
    </a>
    <a href="images/image02.png" data-lightbox="test-gallery">
      <img src="images/image02.png" class="mp-preview-image">
    </a>
    </section>
    """

  Scenario: Images with titles
    Given a slide named "01.html.erb" with:
    """
    <section>
    <h1>Image Gallery</h1>
    <%= image_gallery({'images/image01.png' => 'Title 1', 'images/image02.png' => 'Title 2'}, image_gallery_id: 'test-gallery') %>
    </section>
    """
    And the Server is running
    And I go to "/"
    Then I should see:
    """
    <section>
    <h1>Image Gallery</h1>
    <a href="images/image01.png" data-lightbox="test-gallery">
      <img src="images/image01.png" alt="Title 1" class="mp-preview-image">
    </a>
    <a href="images/image02.png" data-lightbox="test-gallery">
      <img src="images/image02.png" alt="Title 2" class="mp-preview-image">
    </a>
    </section>
    """

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
middleman-presentation-helpers-0.0.4 features/image_gallery.feature
middleman-presentation-helpers-0.0.3 features/image_gallery.feature
middleman-presentation-helpers-0.0.2 features/image_gallery.feature