Sha256: 2d0e6022bb4ab6f101ce88aefc2cbae8264ca36733520338bb7995da24c7a9f9

Contents?: true

Size: 1.17 KB

Versions: 9

Compression:

Stored size: 1.17 KB

Contents

Feature: Manage Pages
  In order to control the content on my website
  As an administrator
  I want to create and manage pages

  Background:
    Given I am a logged in user

  Scenario: Pages List
    Given I have pages titled Home, About
    When I go to the list of pages
    Then I should see "Home"
    And I should see "About"

  Scenario: Create Valid Page
    Given I have no pages
    When I go to the list of pages
    And I follow "Create New Page"
    And I fill in "Title" with "Pickles are Cucumbers Soaked in Evil"
    And I press "Save"
    Then I should see "'Pickles are Cucumbers Soaked in Evil' was successfully created."
    And I should have 1 page

  Scenario: Create Invalid Page (without title)
    Given I have no pages
    When I go to the list of pages
    And I follow "Create New Page"
    And I press "Save"
    Then I should see "Title can't be blank"
    And I should have 0 pages

  Scenario: Create Duplicate Page
    Given I only have pages titled Home, About
    When I go to the list of pages
    And I follow "Create New Page"
    And I fill in "Title" with "About"
    And I press "Save"
    Then I should have 3 pages
    And I should have a page at /about--2

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
refinerycms-0.9.7.8 features/refinery/manage_pages.feature
refinerycms-0.9.7.7 features/refinery/manage_pages.feature
refinerycms-0.9.7.6 features/refinery/manage_pages.feature
refinerycms-0.9.7.5 features/refinery/manage_pages.feature
refinerycms-0.9.7.4 features/refinery/manage_pages.feature
refinerycms-0.9.7.3 features/refinery/manage_pages.feature
refinerycms-0.9.7.2 features/refinery/manage_pages.feature
refinerycms-0.9.7.1 features/refinery/manage_pages.feature
refinerycms-0.9.7 features/refinery/manage_pages.feature