Mock Version: 1.2.17 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/rubygem-json_spec.spec'], chrootPath='/var/lib/mock/epel-1-armhfp-0c8cbab9354eb12e03829f1af54049a34c4de8c3/root'shell=FalseprintOutput=Falseenv={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=0logger=uid=995) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/rubygem-json_spec.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False Building target platforms: noarch Building for target noarch Wrote: /builddir/build/SRPMS/rubygem-json_spec-1.1.4-4.el7.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/rubygem-json_spec.spec'], chrootPath='/var/lib/mock/epel-1-armhfp-0c8cbab9354eb12e03829f1af54049a34c4de8c3/root'shell=Falseuid=995env={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=0private_network=Truelogger=printOutput=False) Executing command: ['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/rubygem-json_spec.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False Building target platforms: noarch Building for target noarch Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.4duVMO + umask 022 + cd /builddir/build/BUILD + gem unpack /builddir/build/SOURCES/json_spec-1.1.4.gem Unpacked gem: '/builddir/build/BUILD/json_spec-1.1.4' + cd /builddir/build/BUILD + cd json_spec-1.1.4 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + gem spec /builddir/build/SOURCES/json_spec-1.1.4.gem -l --ruby + for f in .gitignore .travis.yml Gemfile Rakefile 'gemfiles/*' + rm .gitignore + sed -i 's|".gitignore",\?||g' json_spec.gemspec + for f in .gitignore .travis.yml Gemfile Rakefile 'gemfiles/*' + rm .travis.yml + sed -i 's|".travis.yml",\?||g' json_spec.gemspec + for f in .gitignore .travis.yml Gemfile Rakefile 'gemfiles/*' + rm Gemfile + sed -i 's|"Gemfile",\?||g' json_spec.gemspec + for f in .gitignore .travis.yml Gemfile Rakefile 'gemfiles/*' + rm Rakefile + sed -i 's|"Rakefile",\?||g' json_spec.gemspec + for f in .gitignore .travis.yml Gemfile Rakefile 'gemfiles/*' + rm gemfiles/rspec2.gemfile + sed -i 's|"gemfiles/rspec2.gemfile",\?||g' json_spec.gemspec + for f in .gitignore .travis.yml Gemfile Rakefile 'gemfiles/*' + rm gemfiles/rspec3.gemfile + sed -i 's|"gemfiles/rspec3.gemfile",\?||g' json_spec.gemspec + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.BYvbNN + umask 022 + cd /builddir/build/BUILD + cd json_spec-1.1.4 + gem build json_spec.gemspec Successfully built RubyGem Name: json_spec Version: 1.1.4 File: json_spec-1.1.4.gem + mkdir -p ./usr/share/gems + CONFIGURE_ARGS='--with-cflags='\''-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard'\'' ' + gem install -V --local --install-dir ./usr/share/gems --bindir ./usr/bin --force --document=ri,rdoc json_spec-1.1.4.gem Installing gem json_spec-1.1.4 /builddir/build/BUILD/json_spec-1.1.4/usr/share/gems/gems/json_spec-1.1.4/LICENSE.txt /builddir/build/BUILD/json_spec-1.1.4/usr/share/gems/gems/json_spec-1.1.4/README.md /builddir/build/BUILD/json_spec-1.1.4/usr/share/gems/gems/json_spec-1.1.4/features/equivalence.feature /builddir/build/BUILD/json_spec-1.1.4/usr/share/gems/gems/json_spec-1.1.4/features/files.feature /builddir/build/BUILD/json_spec-1.1.4/usr/share/gems/gems/json_spec-1.1.4/features/inclusion.feature /builddir/build/BUILD/json_spec-1.1.4/usr/share/gems/gems/json_spec-1.1.4/features/memory.feature /builddir/build/BUILD/json_spec-1.1.4/usr/share/gems/gems/json_spec-1.1.4/features/paths.feature /builddir/build/BUILD/json_spec-1.1.4/usr/share/gems/gems/json_spec-1.1.4/features/sizes.feature /builddir/build/BUILD/json_spec-1.1.4/usr/share/gems/gems/json_spec-1.1.4/features/step_definitions/steps.rb /builddir/build/BUILD/json_spec-1.1.4/usr/share/gems/gems/json_spec-1.1.4/features/support/env.rb /builddir/build/BUILD/json_spec-1.1.4/usr/share/gems/gems/json_spec-1.1.4/features/types.feature /builddir/build/BUILD/json_spec-1.1.4/usr/share/gems/gems/json_spec-1.1.4/json_spec.gemspec /builddir/build/BUILD/json_spec-1.1.4/usr/share/gems/gems/json_spec-1.1.4/lib/json_spec.rb /builddir/build/BUILD/json_spec-1.1.4/usr/share/gems/gems/json_spec-1.1.4/lib/json_spec/configuration.rb /builddir/build/BUILD/json_spec-1.1.4/usr/share/gems/gems/json_spec-1.1.4/lib/json_spec/cucumber.rb /builddir/build/BUILD/json_spec-1.1.4/usr/share/gems/gems/json_spec-1.1.4/lib/json_spec/errors.rb /builddir/build/BUILD/json_spec-1.1.4/usr/share/gems/gems/json_spec-1.1.4/lib/json_spec/exclusion.rb /builddir/build/BUILD/json_spec-1.1.4/usr/share/gems/gems/json_spec-1.1.4/lib/json_spec/helpers.rb /builddir/build/BUILD/json_spec-1.1.4/usr/share/gems/gems/json_spec-1.1.4/lib/json_spec/matchers.rb /builddir/build/BUILD/json_spec-1.1.4/usr/share/gems/gems/json_spec-1.1.4/lib/json_spec/matchers/be_json_eql.rb /builddir/build/BUILD/json_spec-1.1.4/usr/share/gems/gems/json_spec-1.1.4/lib/json_spec/matchers/have_json_path.rb /builddir/build/BUILD/json_spec-1.1.4/usr/share/gems/gems/json_spec-1.1.4/lib/json_spec/matchers/have_json_size.rb /builddir/build/BUILD/json_spec-1.1.4/usr/share/gems/gems/json_spec-1.1.4/lib/json_spec/matchers/have_json_type.rb /builddir/build/BUILD/json_spec-1.1.4/usr/share/gems/gems/json_spec-1.1.4/lib/json_spec/matchers/include_json.rb /builddir/build/BUILD/json_spec-1.1.4/usr/share/gems/gems/json_spec-1.1.4/lib/json_spec/memory.rb /builddir/build/BUILD/json_spec-1.1.4/usr/share/gems/gems/json_spec-1.1.4/lib/json_spec/messages.rb /builddir/build/BUILD/json_spec-1.1.4/usr/share/gems/gems/json_spec-1.1.4/spec/json_spec/configuration_spec.rb /builddir/build/BUILD/json_spec-1.1.4/usr/share/gems/gems/json_spec-1.1.4/spec/json_spec/helpers_spec.rb /builddir/build/BUILD/json_spec-1.1.4/usr/share/gems/gems/json_spec-1.1.4/spec/json_spec/matchers/be_json_eql_spec.rb /builddir/build/BUILD/json_spec-1.1.4/usr/share/gems/gems/json_spec-1.1.4/spec/json_spec/matchers/have_json_path_spec.rb /builddir/build/BUILD/json_spec-1.1.4/usr/share/gems/gems/json_spec-1.1.4/spec/json_spec/matchers/have_json_size_spec.rb /builddir/build/BUILD/json_spec-1.1.4/usr/share/gems/gems/json_spec-1.1.4/spec/json_spec/matchers/have_json_type_spec.rb /builddir/build/BUILD/json_spec-1.1.4/usr/share/gems/gems/json_spec-1.1.4/spec/json_spec/matchers/include_json_spec.rb /builddir/build/BUILD/json_spec-1.1.4/usr/share/gems/gems/json_spec-1.1.4/spec/json_spec/matchers_spec.rb /builddir/build/BUILD/json_spec-1.1.4/usr/share/gems/gems/json_spec-1.1.4/spec/json_spec/memory_spec.rb /builddir/build/BUILD/json_spec-1.1.4/usr/share/gems/gems/json_spec-1.1.4/spec/spec_helper.rb /builddir/build/BUILD/json_spec-1.1.4/usr/share/gems/gems/json_spec-1.1.4/spec/support/files/one.json /builddir/build/BUILD/json_spec-1.1.4/usr/share/gems/gems/json_spec-1.1.4/spec/support/files/project/one.json /builddir/build/BUILD/json_spec-1.1.4/usr/share/gems/gems/json_spec-1.1.4/spec/support/files/project/two.json /builddir/build/BUILD/json_spec-1.1.4/usr/share/gems/gems/json_spec-1.1.4/spec/support/files/project/version/one.json /builddir/build/BUILD/json_spec-1.1.4/usr/share/gems/gems/json_spec-1.1.4/spec/support/files/project/version/two.json /builddir/build/BUILD/json_spec-1.1.4/usr/share/gems/gems/json_spec-1.1.4/spec/support/files/two.json Successfully installed json_spec-1.1.4 Parsing documentation for json_spec-1.1.4 Installing ri documentation for json_spec-1.1.4 Installing darkfish documentation for json_spec-1.1.4 1 gem installed Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.qHnWzP + exit 0 + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/rubygem-json_spec-1.1.4-4.el7.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/rubygem-json_spec-1.1.4-4.el7.noarch ++ dirname /builddir/build/BUILDROOT/rubygem-json_spec-1.1.4-4.el7.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/rubygem-json_spec-1.1.4-4.el7.noarch + cd json_spec-1.1.4 + mkdir -p /builddir/build/BUILDROOT/rubygem-json_spec-1.1.4-4.el7.noarch/usr/share/gems + cp -a ./usr/share/gems/build_info ./usr/share/gems/cache ./usr/share/gems/doc ./usr/share/gems/gems ./usr/share/gems/specifications /builddir/build/BUILDROOT/rubygem-json_spec-1.1.4-4.el7.noarch/usr/share/gems/ + /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 /builddir/build/BUILD/json_spec-1.1.4 /usr/lib/rpm/sepdebugcrcfix: Updated 0 CRC32s, 0 CRC32s did match. + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-compress + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.B583nx + umask 022 + cd /builddir/build/BUILD + cd json_spec-1.1.4 ~/build/BUILD/json_spec-1.1.4/usr/share/gems/gems/json_spec-1.1.4 ~/build/BUILD/json_spec-1.1.4 + pushd ./usr/share/gems/gems/json_spec-1.1.4 + rspec -Ilib spec ................................................................................................................... Finished in 0.36901 seconds 115 examples, 0 failures + cucumber --tags '~@fail' Feature: Equivalence Background: # features/equivalence.feature:2 Given the JSON is: # features/step_definitions/steps.rb:1 """ { "array": [ "json", "spec" ], "created_at": "2011-07-08 02:27:34", "empty_array": [ ], "empty_hash": { }, "false": false, "float": 10.0, "hash": { "json": "spec" }, "id": 1, "integer": 10, "negative": -10, "null": null, "string": "json_spec", "true": true, "updated_at": "2011-07-08 02:28:50" } """ Scenario: Identical JSON # features/equivalence.feature:31 When I get the JSON # features/step_definitions/steps.rb:5 Then the JSON should be: # lib/json_spec/cucumber.rb:13 """ { "array": [ "json", "spec" ], "created_at": "2011-07-08 02:27:34", "empty_array": [ ], "empty_hash": { }, "false": false, "float": 10.0, "hash": { "json": "spec" }, "id": 1, "integer": 10, "negative": -10, "null": null, "string": "json_spec", "true": true, "updated_at": "2011-07-08 02:28:50" } """ Scenario: Reverse order # features/equivalence.feature:61 When I get the JSON # features/step_definitions/steps.rb:5 Then the JSON should be: # lib/json_spec/cucumber.rb:13 """ { "updated_at": "2011-07-08 02:28:50", "true": true, "string": "json_spec", "null": null, "negative": -10, "integer": 10, "id": 1, "hash": { "json": "spec" }, "float": 10.0, "false": false, "empty_hash": { }, "empty_array": [ ], "created_at": "2011-07-08 02:27:34", "array": [ "json", "spec" ] } """ Scenario: Excluding keys # features/equivalence.feature:91 When I get the JSON # features/step_definitions/steps.rb:5 Then the JSON should be: # lib/json_spec/cucumber.rb:13 """ { "array": [ "json", "spec" ], "empty_array": [ ], "empty_hash": { }, "false": false, "float": 10.0, "hash": { "json": "spec" }, "integer": 10, "negative": -10, "null": null, "string": "json_spec", "true": true } """ Scenario: String # features/equivalence.feature:118 When I get the JSON # features/step_definitions/steps.rb:5 Then the JSON at "string" should be "json_spec" # lib/json_spec/cucumber.rb:29 And the JSON at "string" should be: # lib/json_spec/cucumber.rb:13 """ "json_spec" """ Scenario: Integer # features/equivalence.feature:126 When I get the JSON # features/step_definitions/steps.rb:5 Then the JSON at "integer" should be 10 # lib/json_spec/cucumber.rb:29 And the JSON at "integer" should be: # lib/json_spec/cucumber.rb:13 """ 10 """ Scenario: Negative integer # features/equivalence.feature:134 When I get the JSON # features/step_definitions/steps.rb:5 Then the JSON at "negative" should be -10 # lib/json_spec/cucumber.rb:29 And the JSON at "negative" should be: # lib/json_spec/cucumber.rb:13 """ -10 """ Scenario: Float # features/equivalence.feature:142 When I get the JSON # features/step_definitions/steps.rb:5 Then the JSON at "float" should be 10.0 # lib/json_spec/cucumber.rb:29 And the JSON at "float" should be 10.0e0 # lib/json_spec/cucumber.rb:29 And the JSON at "float" should be 10.0e+0 # lib/json_spec/cucumber.rb:29 And the JSON at "float" should be 10.0e-0 # lib/json_spec/cucumber.rb:29 And the JSON at "float" should be 10e0 # lib/json_spec/cucumber.rb:29 And the JSON at "float" should be 10e+0 # lib/json_spec/cucumber.rb:29 And the JSON at "float" should be 10e-0 # lib/json_spec/cucumber.rb:29 And the JSON at "float" should be 1.0e1 # lib/json_spec/cucumber.rb:29 And the JSON at "float" should be 1.0e+1 # lib/json_spec/cucumber.rb:29 And the JSON at "float" should be 1e1 # lib/json_spec/cucumber.rb:29 And the JSON at "float" should be 1e+1 # lib/json_spec/cucumber.rb:29 And the JSON at "float" should be 100.0e-1 # lib/json_spec/cucumber.rb:29 And the JSON at "float" should be 100e-1 # lib/json_spec/cucumber.rb:29 And the JSON at "float" should be: # lib/json_spec/cucumber.rb:13 """ 10.0 """ Scenario: Array # features/equivalence.feature:162 When I get the JSON # features/step_definitions/steps.rb:5 Then the JSON at "array" should be ["json","spec"] # lib/json_spec/cucumber.rb:29 And the JSON at "array/0" should be "json" # lib/json_spec/cucumber.rb:29 And the JSON at "array/1" should be "spec" # lib/json_spec/cucumber.rb:29 And the JSON at "array" should be: # lib/json_spec/cucumber.rb:13 """ [ "json", "spec" ] """ Scenario: Empty array # features/equivalence.feature:175 When I get the JSON # features/step_definitions/steps.rb:5 Then the JSON at "empty_array" should be [] # lib/json_spec/cucumber.rb:29 And the JSON at "empty_array" should be: # lib/json_spec/cucumber.rb:13 """ [ ] """ Scenario: Hash # features/equivalence.feature:185 When I get the JSON # features/step_definitions/steps.rb:5 Then the JSON at "hash" should be {"json":"spec"} # lib/json_spec/cucumber.rb:29 And the JSON at "hash/json" should be "spec" # lib/json_spec/cucumber.rb:29 And the JSON at "hash" should be: # lib/json_spec/cucumber.rb:13 """ { "json": "spec" } """ Scenario: Empty hash # features/equivalence.feature:196 When I get the JSON # features/step_definitions/steps.rb:5 Then the JSON at "empty_hash" should be {} # lib/json_spec/cucumber.rb:29 And the JSON at "empty_hash" should be: # lib/json_spec/cucumber.rb:13 """ { } """ Scenario: True # features/equivalence.feature:205 When I get the JSON # features/step_definitions/steps.rb:5 Then the JSON at "true" should be true # lib/json_spec/cucumber.rb:29 And the JSON at "true" should be: # lib/json_spec/cucumber.rb:13 """ true """ Scenario: False # features/equivalence.feature:213 When I get the JSON # features/step_definitions/steps.rb:5 Then the JSON at "false" should be false # lib/json_spec/cucumber.rb:29 And the JSON at "false" should be: # lib/json_spec/cucumber.rb:13 """ false """ Scenario: Null # features/equivalence.feature:221 When I get the JSON # features/step_definitions/steps.rb:5 Then the JSON at "null" should be null # lib/json_spec/cucumber.rb:29 And the JSON at "null" should be: # lib/json_spec/cucumber.rb:13 """ null """ Scenario: Excluded value # features/equivalence.feature:229 When I get the JSON # features/step_definitions/steps.rb:5 Then the JSON at "created_at" should be "2011-07-08 02:27:34" # lib/json_spec/cucumber.rb:29 And the JSON at "id" should be 1 # lib/json_spec/cucumber.rb:29 And the JSON at "updated_at" should be "2011-07-08 02:28:50" # lib/json_spec/cucumber.rb:29 Scenario: Table format # features/equivalence.feature:235 When I get the JSON # features/step_definitions/steps.rb:5 Then the JSON should have the following: # lib/json_spec/cucumber.rb:61 | array | ["json","spec"] | | array/0 | "json" | | array/1 | "spec" | | created_at | "2011-07-08 02:27:34" | | empty_array | [] | | empty_hash | {} | | false | false | | float | 10.0 | | hash | {"json":"spec"} | | hash/json | "spec" | | id | 1 | | integer | 10 | | negative | -10 | | null | null | | string | "json_spec" | | true | true | | updated_at | "2011-07-08 02:28:50" | And the JSON at "array" should have the following: # lib/json_spec/cucumber.rb:61 | 0 | "json" | | 1 | "spec" | And the JSON at "hash" should have the following: # lib/json_spec/cucumber.rb:61 | json | "spec" | Feature: Files Scenario: Equivalence from a file # features/files.feature:2 Given the JSON is: # features/step_definitions/steps.rb:1 """ { "array": [ "json", "spec" ], "false": false, "float": 10.0, "hash": { "json": "spec" }, "created_at": "2011-07-08 02:27:34", "empty_array": [ ], "empty_hash": { }, "id": 1, "integer": 10, "negative": -10, "null": null, "string": "json_spec", "true": true, "updated_at": "2011-07-08 02:28:50" } """ When I get the JSON # features/step_definitions/steps.rb:5 Then the JSON should be file "two.json" # lib/json_spec/cucumber.rb:21 Scenario: Inequivalence from a file # features/files.feature:33 Given the JSON is: # features/step_definitions/steps.rb:1 """ { "string": "json_spec", "true": true, "updated_at": "2011-07-08 02:28:50" } """ When I get the JSON # features/step_definitions/steps.rb:5 Then the JSON should not be file "two.json" # lib/json_spec/cucumber.rb:21 Scenario: Inclusion from a file # features/files.feature:46 Given the JSON is: # features/step_definitions/steps.rb:1 """ { "array": [ "json", "spec" ], "created_at": "2011-07-08 02:27:34", "empty_array": [ ], "empty_hash": { }, "false": false, "float": 10.0, "hash": { "json": "spec" } } """ When I get the JSON # features/step_definitions/steps.rb:5 Then the JSON should include file "project/version/two.json" # lib/json_spec/cucumber.rb:45 Scenario: Exclusion from a file # features/files.feature:70 Given the JSON is: # features/step_definitions/steps.rb:1 """ { "array": [ "json", "spec" ], "created_at": "2011-07-08 02:27:34", "empty_array": [ ], "empty_hash": { }, "false": false, "float": 10.0 } """ When I get the JSON # features/step_definitions/steps.rb:5 Then the JSON should not include file "project/version/two.json" # lib/json_spec/cucumber.rb:45 Feature: Inclusion Background: # features/inclusion.feature:2 Given the JSON is: # features/step_definitions/steps.rb:1 """ { "array": [ "json", "spec" ], "created_at": "2011-07-08 02:27:34", "empty_array": [ ], "empty_hash": { }, "false": false, "float": 10.0, "hash": { "json": "spec" }, "id": 1, "integer": 10, "negative": -10, "null": null, "string": "json_spec", "true": true, "updated_at": "2011-07-08 02:28:50", "nested": { "id": 2, "key": "value" } } """ Scenario: String # features/inclusion.feature:35 When I get the JSON # features/step_definitions/steps.rb:5 Then the JSON should include "json_spec" # lib/json_spec/cucumber.rb:53 And the JSON should include: # lib/json_spec/cucumber.rb:37 """ "json_spec" """ Scenario: Integer # features/inclusion.feature:43 When I get the JSON # features/step_definitions/steps.rb:5 Then the JSON should include 10 # lib/json_spec/cucumber.rb:53 And the JSON should include: # lib/json_spec/cucumber.rb:37 """ 10 """ Scenario: Negative integer # features/inclusion.feature:51 When I get the JSON # features/step_definitions/steps.rb:5 Then the JSON should include -10 # lib/json_spec/cucumber.rb:53 And the JSON should include: # lib/json_spec/cucumber.rb:37 """ -10 """ Scenario: Float # features/inclusion.feature:59 When I get the JSON # features/step_definitions/steps.rb:5 Then the JSON should include 10.0 # lib/json_spec/cucumber.rb:53 And the JSON should include 10.0e0 # lib/json_spec/cucumber.rb:53 And the JSON should include 10.0e+0 # lib/json_spec/cucumber.rb:53 And the JSON should include 10.0e-0 # lib/json_spec/cucumber.rb:53 And the JSON should include 10e0 # lib/json_spec/cucumber.rb:53 And the JSON should include 10e+0 # lib/json_spec/cucumber.rb:53 And the JSON should include 10e-0 # lib/json_spec/cucumber.rb:53 And the JSON should include 1.0e1 # lib/json_spec/cucumber.rb:53 And the JSON should include 1.0e+1 # lib/json_spec/cucumber.rb:53 And the JSON should include 1e1 # lib/json_spec/cucumber.rb:53 And the JSON should include 1e+1 # lib/json_spec/cucumber.rb:53 And the JSON should include 100.0e-1 # lib/json_spec/cucumber.rb:53 And the JSON should include 100e-1 # lib/json_spec/cucumber.rb:53 And the JSON should include: # lib/json_spec/cucumber.rb:37 """ 10.0 """ Scenario: Array # features/inclusion.feature:79 When I get the JSON # features/step_definitions/steps.rb:5 Then the JSON should include ["json","spec"] # lib/json_spec/cucumber.rb:53 And the JSON at "array" should include "json" # lib/json_spec/cucumber.rb:53 And the JSON at "array" should include "spec" # lib/json_spec/cucumber.rb:53 And the JSON should include: # lib/json_spec/cucumber.rb:37 """ [ "json", "spec" ] """ Scenario: Empty array # features/inclusion.feature:92 When I get the JSON # features/step_definitions/steps.rb:5 Then the JSON should include [] # lib/json_spec/cucumber.rb:53 And the JSON should include: # lib/json_spec/cucumber.rb:37 """ [ ] """ Scenario: Hash # features/inclusion.feature:102 When I get the JSON # features/step_definitions/steps.rb:5 Then the JSON should include {"json":"spec"} # lib/json_spec/cucumber.rb:53 And the JSON at "hash" should include "spec" # lib/json_spec/cucumber.rb:53 And the JSON should include: # lib/json_spec/cucumber.rb:37 """ { "json": "spec" } """ Scenario: Empty hash # features/inclusion.feature:113 When I get the JSON # features/step_definitions/steps.rb:5 Then the JSON should include {} # lib/json_spec/cucumber.rb:53 And the JSON should include: # lib/json_spec/cucumber.rb:37 """ { } """ Scenario: True # features/inclusion.feature:122 When I get the JSON # features/step_definitions/steps.rb:5 Then the JSON should include true # lib/json_spec/cucumber.rb:53 And the JSON should include: # lib/json_spec/cucumber.rb:37 """ true """ Scenario: False # features/inclusion.feature:130 When I get the JSON # features/step_definitions/steps.rb:5 Then the JSON should include false # lib/json_spec/cucumber.rb:53 And the JSON should include: # lib/json_spec/cucumber.rb:37 """ false """ Scenario: Null # features/inclusion.feature:138 When I get the JSON # features/step_definitions/steps.rb:5 Then the JSON should include null # lib/json_spec/cucumber.rb:53 And the JSON should include: # lib/json_spec/cucumber.rb:37 """ null """ Scenario: Excluded value # features/inclusion.feature:146 When I get the JSON # features/step_definitions/steps.rb:5 Then the JSON should include "2011-07-08 02:27:34" # lib/json_spec/cucumber.rb:53 And the JSON should include 1 # lib/json_spec/cucumber.rb:53 And the JSON should include "2011-07-08 02:28:50" # lib/json_spec/cucumber.rb:53 Scenario: Nested exclusions # features/inclusion.feature:152 When I get the JSON # features/step_definitions/steps.rb:5 Then the JSON should include {"key":"value"} # lib/json_spec/cucumber.rb:53 Feature: Memory Background: # features/memory.feature:2 Given the JSON is: # features/step_definitions/steps.rb:1 """ { "array": [ ], "false": false, "float": 10.0, "hash": { }, "integer": 10, "null": null, "string": "json_spec", "true": true } """ And I get the JSON # features/step_definitions/steps.rb:5 Scenario: Entire JSON # features/memory.feature:21 When I keep the JSON as "JSON" # lib/json_spec/cucumber.rb:9 Then the JSON should be %{JSON} # lib/json_spec/cucumber.rb:29 And the JSON should be: # lib/json_spec/cucumber.rb:13 """ %{JSON} """ Scenario: String # features/memory.feature:29 When I keep the JSON at "string" as "STRING" # lib/json_spec/cucumber.rb:9 Then the JSON at "string" should be %{STRING} # lib/json_spec/cucumber.rb:29 And the JSON should be: # lib/json_spec/cucumber.rb:13 """ { "array": [ ], "false": false, "float": 10.0, "hash": { }, "integer": 10, "null": null, "string": %{STRING}, "true": true } """ Scenario: Integer # features/memory.feature:49 When I keep the JSON at "integer" as "INTEGER" # lib/json_spec/cucumber.rb:9 Then the JSON at "integer" should be %{INTEGER} # lib/json_spec/cucumber.rb:29 And the JSON should be: # lib/json_spec/cucumber.rb:13 """ { "array": [ ], "false": false, "float": 10.0, "hash": { }, "integer": %{INTEGER}, "null": null, "string": "json_spec", "true": true } """ Scenario: Float # features/memory.feature:69 When I keep the JSON at "float" as "FLOAT" # lib/json_spec/cucumber.rb:9 Then the JSON at "float" should be %{FLOAT} # lib/json_spec/cucumber.rb:29 And the JSON should be: # lib/json_spec/cucumber.rb:13 """ { "array": [ ], "false": false, "float": %{FLOAT}, "hash": { }, "integer": 10, "null": null, "string": "json_spec", "true": true } """ Scenario: Array # features/memory.feature:89 When I keep the JSON at "array" as "ARRAY" # lib/json_spec/cucumber.rb:9 Then the JSON at "array" should be %{ARRAY} # lib/json_spec/cucumber.rb:29 And the JSON should be: # lib/json_spec/cucumber.rb:13 """ { "array": %{ARRAY}, "false": false, "float": 10.0, "hash": { }, "integer": 10, "null": null, "string": "json_spec", "true": true } """ Scenario: Hash # features/memory.feature:107 When I keep the JSON at "hash" as "HASH" # lib/json_spec/cucumber.rb:9 Then the JSON at "hash" should be %{HASH} # lib/json_spec/cucumber.rb:29 And the JSON should be: # lib/json_spec/cucumber.rb:13 """ { "array": [ ], "false": false, "float": 10.0, "hash": %{HASH}, "integer": 10, "null": null, "string": "json_spec", "true": true } """ Scenario: True # features/memory.feature:126 When I keep the JSON at "true" as "TRUE" # lib/json_spec/cucumber.rb:9 Then the JSON at "true" should be %{TRUE} # lib/json_spec/cucumber.rb:29 And the JSON should be: # lib/json_spec/cucumber.rb:13 """ { "array": [ ], "false": false, "float": 10.0, "hash": { }, "integer": 10, "null": null, "string": "json_spec", "true": %{TRUE} } """ Scenario: False # features/memory.feature:146 When I keep the JSON at "false" as "FALSE" # lib/json_spec/cucumber.rb:9 Then the JSON at "false" should be %{FALSE} # lib/json_spec/cucumber.rb:29 And the JSON should be: # lib/json_spec/cucumber.rb:13 """ { "array": [ ], "false": %{FALSE}, "float": 10.0, "hash": { }, "integer": 10, "null": null, "string": "json_spec", "true": true } """ Scenario: Null # features/memory.feature:166 When I keep the JSON at "null" as "NULL" # lib/json_spec/cucumber.rb:9 Then the JSON at "null" should be %{NULL} # lib/json_spec/cucumber.rb:29 And the JSON should be: # lib/json_spec/cucumber.rb:13 """ { "array": [ ], "false": false, "float": 10.0, "hash": { }, "integer": 10, "null": %{NULL}, "string": "json_spec", "true": true } """ Scenario: Table format # features/memory.feature:186 When I keep the JSON at "string" as "STRING" # lib/json_spec/cucumber.rb:9 And I keep the JSON at "integer" as "INTEGER" # lib/json_spec/cucumber.rb:9 And I keep the JSON at "float" as "FLOAT" # lib/json_spec/cucumber.rb:9 And I keep the JSON at "array" as "ARRAY" # lib/json_spec/cucumber.rb:9 And I keep the JSON at "hash" as "HASH" # lib/json_spec/cucumber.rb:9 And I keep the JSON at "true" as "TRUE" # lib/json_spec/cucumber.rb:9 And I keep the JSON at "false" as "FALSE" # lib/json_spec/cucumber.rb:9 And I keep the JSON at "null" as "NULL" # lib/json_spec/cucumber.rb:9 Then the JSON should have the following: # lib/json_spec/cucumber.rb:61 | string | %{STRING} | | integer | %{INTEGER} | | float | %{FLOAT} | | array | %{ARRAY} | | hash | %{HASH} | | true | %{TRUE} | | false | %{FALSE} | | null | %{NULL} | Scenario: Inclusion # features/memory.feature:205 When I keep the JSON at "string" as "STRING" # lib/json_spec/cucumber.rb:9 And I keep the JSON at "integer" as "INTEGER" # lib/json_spec/cucumber.rb:9 And I keep the JSON at "float" as "FLOAT" # lib/json_spec/cucumber.rb:9 And I keep the JSON at "array" as "ARRAY" # lib/json_spec/cucumber.rb:9 And I keep the JSON at "hash" as "HASH" # lib/json_spec/cucumber.rb:9 And I keep the JSON at "true" as "TRUE" # lib/json_spec/cucumber.rb:9 And I keep the JSON at "false" as "FALSE" # lib/json_spec/cucumber.rb:9 And I keep the JSON at "null" as "NULL" # lib/json_spec/cucumber.rb:9 Then the JSON should include %{STRING} # lib/json_spec/cucumber.rb:53 And the JSON should include %{INTEGER} # lib/json_spec/cucumber.rb:53 And the JSON should include %{FLOAT} # lib/json_spec/cucumber.rb:53 And the JSON should include %{ARRAY} # lib/json_spec/cucumber.rb:53 And the JSON should include %{HASH} # lib/json_spec/cucumber.rb:53 And the JSON should include %{TRUE} # lib/json_spec/cucumber.rb:53 And the JSON should include %{FALSE} # lib/json_spec/cucumber.rb:53 And the JSON should include %{NULL} # lib/json_spec/cucumber.rb:53 Feature: Paths Background: # features/paths.feature:2 Given the JSON is: # features/step_definitions/steps.rb:1 """ { "array": [ { "one": 1, "two": 2 }, { "four": 4, "three": 3 } ], "hash": { "even": [ 6, 8 ], "odd": [ 5, 7 ] }, "id": null } """ Scenario: Base paths # features/paths.feature:30 When I get the JSON # features/step_definitions/steps.rb:5 Then the JSON should have "array" # lib/json_spec/cucumber.rb:73 And the JSON should have "hash" # lib/json_spec/cucumber.rb:73 And the JSON should have "id" # lib/json_spec/cucumber.rb:73 Scenario: Nested paths # features/paths.feature:36 When I get the JSON # features/step_definitions/steps.rb:5 Then the JSON should have "array/0" # lib/json_spec/cucumber.rb:73 And the JSON should have "array/1" # lib/json_spec/cucumber.rb:73 And the JSON should have "hash/even" # lib/json_spec/cucumber.rb:73 And the JSON should have "hash/odd" # lib/json_spec/cucumber.rb:73 Scenario: Deeply nested paths # features/paths.feature:43 When I get the JSON # features/step_definitions/steps.rb:5 Then the JSON should have "array/0/one" # lib/json_spec/cucumber.rb:73 And the JSON should have "array/0/two" # lib/json_spec/cucumber.rb:73 And the JSON should have "array/1/four" # lib/json_spec/cucumber.rb:73 And the JSON should have "array/1/three" # lib/json_spec/cucumber.rb:73 And the JSON should have "hash/even/0" # lib/json_spec/cucumber.rb:73 And the JSON should have "hash/even/1" # lib/json_spec/cucumber.rb:73 And the JSON should have "hash/odd/0" # lib/json_spec/cucumber.rb:73 And the JSON should have "hash/odd/1" # lib/json_spec/cucumber.rb:73 Scenario: Ignored paths # features/paths.feature:54 When I get the JSON # features/step_definitions/steps.rb:5 Then the JSON should have "id" # lib/json_spec/cucumber.rb:73 Scenario: Table format # features/paths.feature:58 When I get the JSON # features/step_definitions/steps.rb:5 Then the JSON should have the following: # lib/json_spec/cucumber.rb:61 | array | | hash | | array/0 | | array/1 | | hash/even | | hash/odd | | array/0/one | | array/0/two | | array/1/four | | array/1/three | | hash/even/0 | | hash/even/1 | | hash/odd/0 | | hash/odd/1 | Feature: Sizes Background: # features/sizes.feature:2 Given the JSON is: # features/step_definitions/steps.rb:1 """ { "id": null, "one": [ 1 ], "three": [ 1, 2, 3 ], "two": [ 1, 2 ], "zero": [ ] } """ Scenario: Hash # features/sizes.feature:25 When I get the JSON # features/step_definitions/steps.rb:5 Then the JSON should have 5 keys # lib/json_spec/cucumber.rb:89 And the JSON should have 5 values # lib/json_spec/cucumber.rb:89 Scenario: Empty array # features/sizes.feature:30 When I get the JSON # features/step_definitions/steps.rb:5 Then the JSON at "zero" should have 0 entries # lib/json_spec/cucumber.rb:89 Scenario: Array # features/sizes.feature:34 When I get the JSON # features/step_definitions/steps.rb:5 Then the JSON at "one" should have 1 entry # lib/json_spec/cucumber.rb:89 And the JSON at "two" should have 2 values # lib/json_spec/cucumber.rb:89 And the JSON at "three" should have 3 numbers # lib/json_spec/cucumber.rb:89 Feature: Types Scenario: All types # features/types.feature:2 Given the JSON is: # features/step_definitions/steps.rb:1 """ { "array": [], "false": true, "float": 10.0, "hash": {}, "integer": 10, "string": "json_spec", "true": true } """ When I get the JSON # features/step_definitions/steps.rb:5 Then the JSON should be a hash # lib/json_spec/cucumber.rb:81 And the JSON at "array" should be an array # lib/json_spec/cucumber.rb:81 And the JSON at "false" should be a boolean # lib/json_spec/cucumber.rb:81 And the JSON at "float" should be a float # lib/json_spec/cucumber.rb:81 And the JSON at "hash" should be a hash # lib/json_spec/cucumber.rb:81 And the JSON at "hash" should be an object # lib/json_spec/cucumber.rb:81 And the JSON at "integer" should be an integer # lib/json_spec/cucumber.rb:81 And the JSON at "string" should be a string # lib/json_spec/cucumber.rb:81 And the JSON at "true" should be a boolean # lib/json_spec/cucumber.rb:81 53 scenarios (53 passed) 281 steps (281 passed) 0m2.180s ~/build/BUILD/json_spec-1.1.4 + popd + exit 0 Processing files: rubygem-json_spec-1.1.4-4.el7.noarch Provides: rubygem(json_spec) = 1.1.4 rubygem-json_spec = 1.1.4-4.el7 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: rubygem-json_spec-doc-1.1.4-4.el7.noarch Provides: rubygem-json_spec-doc = 1.1.4-4.el7 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/rubygem-json_spec-1.1.4-4.el7.noarch Wrote: /builddir/build/RPMS/rubygem-json_spec-1.1.4-4.el7.noarch.rpm Wrote: /builddir/build/RPMS/rubygem-json_spec-doc-1.1.4-4.el7.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.CPMgKz + umask 022 + cd /builddir/build/BUILD + cd json_spec-1.1.4 + /usr/bin/rm -rf /builddir/build/BUILDROOT/rubygem-json_spec-1.1.4-4.el7.noarch + exit 0 Child return code was: 0