Sha256: 160fab8e5704b60d33e5f4f8e2a42588a8796b4b99e1b0c17044c36a0a31acb3
Contents?: true
Size: 1.52 KB
Versions: 5
Compression:
Stored size: 1.52 KB
Contents
@images @images-manage Feature: Manage Images In order to control the content on my website As an administrator I want to create and manage images Background: Given I am a logged in refinery user And I have no images @images-create Scenario: Create Valid Image When I go to the list of images And I follow "Add New Image" And I attach the image at "beach.jpeg" And I press "Save" Then the image "beach.jpeg" should have uploaded successfully And I should have 1 image And the image should have size "254718" And the image should have width "500" And the image should have height "375" And the image should have mime_type "image/jpeg" Scenario: Create Invalid Image (format) When I go to the list of images And I follow "Add New Image" And I attach the image at "refinery_is_awesome.txt" And I press "Save" Then I should not see "successfully added" And I should have 0 images @images-edit Scenario: Edit Existing Image When I upload the image at "beach.jpeg" And I go to the list of images And I follow "Edit this image" And I attach the image at "id-rather-be-here.jpg" And I press "Save" Then I should see "'Id Rather Be Here' was successfully updated." And I should have 1 image @images-delete Scenario: Delete Image When I upload the image at "beach.jpeg" When I go to the list of images And I follow "Remove this image forever" Then I should see "'Beach' was successfully removed." And I should have 0 images
Version data entries
5 entries across 5 versions & 1 rubygems