Sha256: 4a04f427f26e8c32dae83c662978834252321b66195e7a5f7d10d74bebcc9948

Contents?: true

Size: 1.28 KB

Versions: 4

Compression:

Stored size: 1.28 KB

Contents

@files @files-manage
Feature: Manage Files
  In order to control the content on my website
  As an administrator
  I want to create and manage files

  Background:
    Given I am a logged in refinery user
    And I have no files

  Scenario: Create Valid File
    When I go to the list of files
    And I follow "Upload New File"
    And I attach the file at "refinery_is_awesome.txt"
    And I press "Save"
    Then the file "refinery_is_awesome.txt" should have uploaded successfully
    And I should have 1 file

  Scenario: Edit Existing File
    When I upload the file at "refinery_is_awesome.txt"
    And I go to the list of files
    And I follow "Edit this file"
    And I attach the file at "beach.jpeg"
    And I press "Save"
    Then the file "beach.jpeg" should have uploaded successfully
    And I should have 1 file

  Scenario: Download Existing File
    When I upload the file at "refinery_is_awesome.txt"
    And I go to the list of files
    And I follow "Download this file"
    Then I should see "http://www.refineryhq.com/"

  Scenario: Files Delete
    When I upload the file at "refinery_is_awesome.txt"
    And I go to the list of files
    And I follow "Remove this file forever"
    Then I should see "'Refinery Is Awesome' was successfully destroyed."
    And I should have 0 files

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
refinerycms-0.9.8.4 vendor/refinerycms/resources/features/manage_files.feature
refinerycms-0.9.8.3 vendor/refinerycms/resources/features/manage_files.feature
refinerycms-0.9.8.2 vendor/refinerycms/resources/features/manage_files.feature
refinerycms-0.9.8.1 vendor/refinerycms/resources/features/manage_files.feature