Sha256: 6071a13c002ccc942a1b2b75c6839b16d4244f6970401c04161389cbc885a849

Contents?: true

Size: 1.41 KB

Versions: 4

Compression:

Stored size: 1.41 KB

Contents

@refinerycms @files @files-manage @resources @resources-manage @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

  @files-valid @valid
  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

  @files-edit @edit
  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

  @files-show @show
  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/"

  @files-delete @delete
  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 removed."
    And I should have 0 files

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
refinerycms-0.9.8.9 vendor/refinerycms/resources/features/manage_files.feature
refinerycms-0.9.8.8 vendor/refinerycms/resources/features/manage_files.feature
refinerycms-0.9.8.7 vendor/refinerycms/resources/features/manage_files.feature
refinerycms-0.9.8.6 vendor/refinerycms/resources/features/manage_files.feature