Sha256: 844be98e9546928e003125a1a291a3a45810df7ccde37fb1e0ee09ceb69b711e

Contents?: true

Size: 996 Bytes

Versions: 9

Compression:

Stored size: 996 Bytes

Contents

Feature: Player

  As a game player I want to have a player on database

  Scenario: Create new player
    Given setup key 'initial_player.wallet.gold' is '10'
    And   config key 'initial_player.name' is 'Guest'
    When  client call route 'rubypitaya.playerHandler.authenticate'
    Then  server should response 'code' as 'RP-200'
    And   server should response 'data.name' as 'Guest'
    And   server should response 'data.gold' as '10'

  Scenario: Get player info
    Given the following player:
      | name    | gold | user_id                              |
      | Someone | 15   | 00000000-0000-0000-0000-000000000001 |
    And   the player 'Someone' is authenticated
    When  client call route 'rubypitaya.playerHandler.getInfo'
    Then  server should response the following json:
      """
      {
        "code": "RP-200",
        "data": {
          "name": "Someone",
          "gold": 15,
          "userId": "00000000-0000-0000-0000-000000000001"
        }
      }
      """

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rubypitaya-2.20.0 ./lib/rubypitaya/app-template/features/player.feature
rubypitaya-2.19.1 ./lib/rubypitaya/app-template/features/player.feature
rubypitaya-2.19.0 ./lib/rubypitaya/app-template/features/player.feature
rubypitaya-2.18.0 ./lib/rubypitaya/app-template/features/player.feature
rubypitaya-2.17.0 ./lib/rubypitaya/app-template/features/player.feature
rubypitaya-2.16.0 ./lib/rubypitaya/app-template/features/player.feature
rubypitaya-2.15.0 ./lib/rubypitaya/app-template/features/player.feature
rubypitaya-2.14.1 ./lib/rubypitaya/app-template/features/player.feature
rubypitaya-2.14.0 ./lib/rubypitaya/app-template/features/player.feature