Sha256: ad600daa1600b7d8cfd78385f9c37b2cb7a1fbc6f589b654952b39516d900daf

Contents?: true

Size: 954 Bytes

Versions: 18

Compression:

Stored size: 954 Bytes

Contents

@api
Feature: Themes API
  Scenario: List all themes
    Given 3 themes
    When I GET "/api/themes"
    Then the response status should be 200
    And  the response should contain 3 "themes"

  Scenario: Create a new theme
    When I POST "/api/themes":
      """
      {
        "theme": {
          "name": "A theme name!",
          "description": "A beautiful theme",
          "body": "{{ body }}",
          "thumbnail_url": "http://foo/bar.jpg"
        }
      }
      """
    Then the response should be 201 "Created"
    And  the JSON at "theme/name" should be "A theme name!"
    When I follow the "Location" header
    Then the JSON at "theme/name" should be "A theme name!"

  Scenario: Update a theme
    Given a theme
    When  I PATCH "/api/themes/{{@theme.id}}":
      """
      { "theme": { "name": "New day new name" } }
      """
    Then the response should be 200 "OK"
    And  the JSON at "theme/name" should be "New day new name"

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
landable-1.14.0 features/api/themes.feature
landable-1.13.2 features/api/themes.feature
landable-1.13.1 features/api/themes.feature
landable-1.12.3 features/api/themes.feature
landable-1.12.2 features/api/themes.feature
landable-1.12.1 features/api/themes.feature
landable-1.11.1 features/api/themes.feature
landable-1.11.0 features/api/themes.feature
landable-1.10.0.rc2 features/api/themes.feature
landable-1.10.0.rc1 features/api/themes.feature
landable-1.9.2 features/api/themes.feature
landable-1.9.1 features/api/themes.feature
landable-1.9.0 features/api/themes.feature
landable-1.9.0.rc2 features/api/themes.feature
landable-1.9.0.rc1 features/api/themes.feature
landable-1.8.0 features/api/themes.feature
landable-1.7.1.rc1 features/api/themes.feature
landable-1.7.0 features/api/themes.feature