Sha256: 09bed62e10816cb0147ad7ec40aeb9ad46829ca1c29941574b53debe7ba7e472

Contents?: true

Size: 1.42 KB

Versions: 22

Compression:

Stored size: 1.42 KB

Contents

Feature: Player

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

  Scenario: Create new player
    Given the config key 'initial_player.wallet.gold' is '10'
    And   the config key 'initial_player.name' is 'Guest'
    When  the client calls the route 'rubypitaya.playerHandler.authenticate'
    Then  the server response 'code' should be 'RP-200'
    And   the server response 'data.name' should be 'Guest'
    And   the server response 'data.gold' should be '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  the client calls the route 'rubypitaya.playerHandler.getInfo'
    Then  the server response should be the following json
      """
      {
        "code": "RP-200",
        "data": {
          "name": "Someone",
          "gold": 15,
          "userId": "00000000-0000-0000-0000-000000000001"
        }
      }
      """
    And   the server response 'data' should be the following json
      """
      {
        "name": "Someone",
        "gold": 15,
        "userId": "00000000-0000-0000-0000-000000000001"
      }
      """
    And   the server response should contains the following json
      """
      {
        "data": {
          "gold": 15,
          "userId": "00000000-0000-0000-0000-000000000001"
        }
      }
      """

Version data entries

22 entries across 18 versions & 1 rubygems

Version Path
rubypitaya-3.18.0 ./lib/rubypitaya/app-template/features/player.feature
rubypitaya-3.17.2 ./lib/rubypitaya/app-template/features/player.feature
rubypitaya-3.17.1 ./lib/rubypitaya/app-template/features/player.feature
rubypitaya-3.17.0 ./lib/rubypitaya/app-template/features/player.feature
rubypitaya-3.16.0 ./lib/rubypitaya/app-template/features/player.feature
rubypitaya-3.15.3 ./lib/rubypitaya/app-template/features/player.feature
rubypitaya-3.15.2 ./lib/rubypitaya/app-template/features/player.feature
rubypitaya-3.15.1 ./lib/rubypitaya/app-template/features/player.feature
rubypitaya-3.15.0 ./lib/rubypitaya/app-template/features/player.feature
rubypitaya-3.14.0 ./lib/rubypitaya/app-template/features/player.feature
rubypitaya-3.13.1 ./lib/rubypitaya/app-template/features/player.feature
rubypitaya-3.13.0 ./lib/rubypitaya/app-template/features/player.feature
rubypitaya-3.12.5 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rubypitaya-3.12.1/lib/rubypitaya/app-template/features/player.feature
rubypitaya-3.12.5 ./lib/rubypitaya/app-template/features/player.feature
rubypitaya-3.12.4 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rubypitaya-3.12.1/lib/rubypitaya/app-template/features/player.feature
rubypitaya-3.12.4 ./lib/rubypitaya/app-template/features/player.feature
rubypitaya-3.12.3 ./lib/rubypitaya/app-template/features/player.feature
rubypitaya-3.12.3 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rubypitaya-3.12.1/lib/rubypitaya/app-template/features/player.feature
rubypitaya-3.12.2 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rubypitaya-3.12.1/lib/rubypitaya/app-template/features/player.feature
rubypitaya-3.12.2 ./lib/rubypitaya/app-template/features/player.feature