Sha256: 86b2f672d6e6175e281113461d2e83c89ea136f04920fbeb22dc638681e5af88

Contents?: true

Size: 1.12 KB

Versions: 37

Compression:

Stored size: 1.12 KB

Contents

Feature: Current Site
  In order to ensure the current site can be viewed by all authenticated users
  As an admin, designer or author
  I should be able to show the current site

  Background:
    Given I have the site: "test site" set up
    And I have a designer and an author

  Scenario: As an unauthenticated user
    Given I am not authenticated
    When I do an API GET to current_site.json
    Then the JSON response at "error" should be "You need to sign in or sign up before continuing."

  # showing current site

  Scenario: Accessing current site as an Admin
    Given I have an "admin" API token
    When I do an API GET to current_site.json
    Then the JSON response at "name" should be "Locomotive test website"

  Scenario: Accessing current site as a Designer
    Given I have a "designer" API token
    When I do an API GET to current_site.json
    Then the JSON response at "name" should be "Locomotive test website"

  Scenario: Accessing current site as an Author
    Given I have an "author" API token
    When I do an API GET to current_site.json
    Then the JSON response at "name" should be "Locomotive test website"

Version data entries

37 entries across 37 versions & 2 rubygems

Version Path
locomotivecms-3.0.0.rc3 features/api/authorization/current_site.feature
locomotivecms-3.0.0.rc2 features/api/authorization/current_site.feature
locomotivecms-3.0.0.rc1 features/api/authorization/current_site.feature
locomotivecms-3.0.0.pre.beta.1 features/api/authorization/current_site.feature
locomotivecms-3.0.0.pre.alpha.3 features/api/authorization/current_site.feature
locomotive_cms-2.5.7 features/api/authorization/current_site.feature
locomotivecms-3.0.0.pre.alpha.2 features/api/authorization/current_site.feature
locomotivecms-3.0.0.pre.alpha features/api/authorization/current_site.feature
locomotive_cms-2.5.6 features/api/authorization/current_site.feature
locomotive_cms-2.5.6.rc2 features/api/authorization/current_site.feature
locomotive_cms-2.5.6.rc1 features/api/authorization/current_site.feature
locomotive_cms-2.5.5 features/api/authorization/current_site.feature
locomotive_cms-2.5.4 features/api/authorization/current_site.feature
locomotive_cms-2.5.3 features/api/authorization/current_site.feature
locomotive_cms-2.5.2 features/api/authorization/current_site.feature
locomotive_cms-2.5.1 features/api/authorization/current_site.feature
locomotive_cms-2.5.0 features/api/authorization/current_site.feature
locomotive_cms-2.5.0.rc3 features/api/authorization/current_site.feature
locomotive_cms-2.5.0.rc2 features/api/authorization/current_site.feature
locomotive_cms-2.5.0.rc1 features/api/authorization/current_site.feature