File: types.feature

package info (click to toggle)
ruby-json-spec 1.1.5-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 312 kB
  • sloc: ruby: 1,059; makefile: 2
file content (24 lines) | stat: -rw-r--r-- 695 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Feature: Types
  Scenario: All types
    Given the JSON is:
      """
      {
        "array": [],
        "false": true,
        "float": 10.0,
        "hash": {},
        "integer": 10,
        "string": "json_spec",
        "true": true
      }
      """
    When I get the JSON
    Then the JSON should be a hash
    And the JSON at "array" should be an array
    And the JSON at "false" should be a boolean
    And the JSON at "float" should be a float
    And the JSON at "hash" should be a hash
    And the JSON at "hash" should be an object
    And the JSON at "integer" should be an integer
    And the JSON at "string" should be a string
    And the JSON at "true" should be a boolean