Sha256: 83d602bc448e921ab2e60ba0ecbf32c06e6bce54c988966318a72f6e494f189c

Contents?: true

Size: 1.29 KB

Versions: 22

Compression:

Stored size: 1.29 KB

Contents

Feature: Accounts
  In order to manage accounts programmatically
  As an API user
  I will be able to create and update content entries

  Background:
    Given I have the site: "test site" set up with id: "4f832c2cb0d86d3f42fffffb"

  Scenario: Creating a new account
    Given I have an "admin" API token
    When I do an API POST to accounts.json with:
    """
    {
      "account": {
        "name": "New User",
        "email": "new-user4@a.com",
        "password": "asimpleone",
        "password_confirmation": "asimpleone"
      }
    }
    """
    When I do an API GET request to accounts.json
    Then the JSON response should be an array
    And the JSON response should have 2 entries
    And the JSON response at "1/name" should be "New User"

  Scenario: Updating a account
    Given I have an "admin" API token
    And I have accounts:
      | name | email           | id                       |
      | User | new-user1@a.com | 4f832c2cb0d86d3f42fffffc |

    When I do an API PUT to accounts/4f832c2cb0d86d3f42fffffc.json with:
    """
    {
      "account": {
        "name": "Modified User"
      }
    }
    """
    When I do an API GET request to accounts/4f832c2cb0d86d3f42fffffc.json
    Then the JSON response should be an hash
    And the JSON response at "name" should be "Modified User"

Version data entries

22 entries across 22 versions & 2 rubygems

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