Sha256: 1eacac5d4bf09e55770039b15b9506582e6d5bef7781b47afc78f6fe9ca61ff9

Contents?: true

Size: 1.49 KB

Versions: 60

Compression:

Stored size: 1.49 KB

Contents

Feature: champion adds cover images to his albums
  In order to be a champion
  A user adds an image to his album

  Scenario: Add and view image
    When I go to the new album page
    And I attach the file "../../../samples/beach.png" to "album[cover_image]"
    And I press "Create"
    Then I should see "successfully created"
    And I should see "Look at this cover image!"
    When I look at the generated image
    Then I should see a PNG image of size 200x100

  Scenario: validation fails
    When I go to the new album page
    And I attach the file "../../../samples/sample.docx" to "album[cover_image]"
    And I press "Create"
    Then I should see "Cover image format is incorrect. It needs to be one of 'jpg', 'png', 'gif', but was 'docx'"

  Scenario: other validation fails
    When I go to the new album page
    And I fill in "album[name]" with "too long"
    And I attach the file "../../../samples/beach.png" to "album[cover_image]"
    And I press "Create"
    Then I should see "Name is too long"
    When I fill in "album[name]" with "short"
    And I press "Create"
    Then I should see "successfully created"
    And I should see "short"
    And I should see "Look at this cover image!"
    When I look at the generated image
    Then I should see a PNG image of size 200x100

  Scenario: view remote image
    Given an album "good" with attached file "beach.png"
    When I go to the page for album "good"
    And I look at the original image
    Then I should see a PNG image of size 280x355

Version data entries

60 entries across 60 versions & 3 rubygems

Version Path
classiccms-0.7.5 vendor/bundle/gems/dragonfly-0.9.12/fixtures/rails/files/features/manage_album_images.feature
classiccms-0.7.4 vendor/bundle/gems/dragonfly-0.9.12/fixtures/rails/files/features/manage_album_images.feature
classiccms-0.7.3 vendor/bundle/gems/dragonfly-0.9.12/fixtures/rails/files/features/manage_album_images.feature
classiccms-0.7.2 vendor/bundle/gems/dragonfly-0.9.12/fixtures/rails/files/features/manage_album_images.feature
classiccms-0.7.1 vendor/bundle/gems/dragonfly-0.9.12/fixtures/rails/files/features/manage_album_images.feature
classiccms-0.7.0 vendor/bundle/gems/dragonfly-0.9.12/fixtures/rails/files/features/manage_album_images.feature
dragonfly-0.9.15 fixtures/rails/files/features/manage_album_images.feature
dragonfly-0.9.14 fixtures/rails/files/features/manage_album_images.feature
dragonfly-0.9.13 fixtures/rails/files/features/manage_album_images.feature
classiccms-0.6.9 vendor/bundle/gems/dragonfly-0.9.12/fixtures/rails/files/features/manage_album_images.feature
classiccms-0.6.8 vendor/bundle/gems/dragonfly-0.9.12/fixtures/rails/files/features/manage_album_images.feature
classiccms-0.6.7 vendor/bundle/gems/dragonfly-0.9.12/fixtures/rails/files/features/manage_album_images.feature
classiccms-0.6.6 vendor/bundle/gems/dragonfly-0.9.12/fixtures/rails/files/features/manage_album_images.feature
classiccms-0.6.5 vendor/bundle/gems/dragonfly-0.9.12/fixtures/rails/files/features/manage_album_images.feature
classiccms-0.6.4 vendor/bundle/gems/dragonfly-0.9.12/fixtures/rails/files/features/manage_album_images.feature
classiccms-0.6.3 vendor/bundle/gems/dragonfly-0.9.12/fixtures/rails/files/features/manage_album_images.feature
classiccms-0.6.2 vendor/bundle/gems/dragonfly-0.9.12/fixtures/rails/files/features/manage_album_images.feature
classiccms-0.6.1 vendor/bundle/gems/dragonfly-0.9.12/fixtures/rails/files/features/manage_album_images.feature
classiccms-0.6.0 vendor/bundle/gems/dragonfly-0.9.12/fixtures/rails/files/features/manage_album_images.feature
classiccms-0.5.17 vendor/bundle/gems/dragonfly-0.9.12/fixtures/rails/files/features/manage_album_images.feature