Sha256: 1aedebc9ae6cc8400f3aed3a8abaecb27ac36f87a9c6484720774c0ac28f698f

Contents?: true

Size: 1.85 KB

Versions: 76

Compression:

Stored size: 1.85 KB

Contents

Feature: champion uses dragonfly to process images
  In order to be a champion
  A user uses dragonfly

  Background:
    Given we are using the app for images
    Given a stored image "beach.png" with dimensions 200x100

  Scenario: Go to url for original
    When I go to the url for "beach.png", with format 'png'
    Then the response should be OK
    And the response should have mime-type 'image/png'
    And the image should have width '200'
    And the image should have height '100'
    And the image should have format 'png'

  Scenario: Go to url for changed format version
    When I go to the url for "beach.png", with format 'gif'
    Then the response should be OK
    And the response should have mime-type 'image/gif'
    And the image should have width '200'
    And the image should have height '100'
    And the image should have format 'gif'

  Scenario: Go to url for soft resized version
    When I go to the url for "beach.png", with format 'png' and resize geometry '100x150'
    Then the response should be OK
    And the response should have mime-type 'image/png'
    And the image should have width '100'
    And the image should have height '50'
    And the image should have format 'png'

  Scenario: Go to url for hard resized version
    When I go to the url for "beach.png", with format 'png' and resize geometry '100x150!'
    Then the response should be OK
    And the response should have mime-type 'image/png'
    And the image should have width '100'
    And the image should have height '150'
    And the image should have format 'png'

  Scenario: use a parameters shortcut
    When I go to the url for "beach.png", with shortcut '100x150!'
    Then the response should be OK
    And the response should have mime-type 'image/png'
    And the image should have width '100'
    And the image should have height '150'
    And the image should have format 'png'

Version data entries

76 entries across 76 versions & 4 rubygems

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