cucumber-blendle-steps 0.8.4 → 0.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/cucumber/blendle/steps/debug_steps.rb +6 -0
- data/lib/cucumber/blendle/steps/model_steps.rb +1 -1
- data/lib/cucumber/blendle/steps/rest_steps.rb +2 -2
- data/lib/cucumber/blendle/support/dump.rb +2 -0
- data/lib/cucumber/blendle/version.rb +1 -1
- data/lib/cucumber/blendle_steps.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8cfc035e3cde45c3d7899a440a473b37a2c8ef2a
|
4
|
+
data.tar.gz: b9eb6d3a080cbb5aeab0c4aedbb9595e7e32423b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a75552a435a57be9a92848dfb8ecf102b67d0793c299989350d0d6b2ea3a69c72b829f93d72c8738dfaa7dcd9787479bfdcaeaa3a8783270f631bb3079b088d0
|
7
|
+
data.tar.gz: f4502e01fd8c3a86b8e20e57ed2c3b8382f61a6d09f0aa7ea35a1ee0e3b2edc3de58408ee53d2463c4bc2e63b57eccbad2b0065a590ad3d35e75ad5f11791431
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## [v0.8.4](https://github.com/blendle/cucumber-blendle-steps/tree/v0.8.4) (2016-05-05)
|
4
|
+
[Full Changelog](https://github.com/blendle/cucumber-blendle-steps/compare/v0.8.3...v0.8.4)
|
5
|
+
|
3
6
|
## [v0.8.3](https://github.com/blendle/cucumber-blendle-steps/tree/v0.8.3) (2016-05-03)
|
4
7
|
[Full Changelog](https://github.com/blendle/cucumber-blendle-steps/compare/v0.8.2...v0.8.3)
|
5
8
|
|
@@ -83,7 +83,7 @@ Then(/^there should be (\d+) (.+)? records?$/) do |count, object|
|
|
83
83
|
count = count.to_i
|
84
84
|
klass = object.tr(' ', '_').singularize.classify
|
85
85
|
|
86
|
-
assert_equal(klass.constantize.count
|
86
|
+
assert_equal(count, klass.constantize.count)
|
87
87
|
end
|
88
88
|
|
89
89
|
# parse_row
|
@@ -5,13 +5,13 @@ require 'rack/utils'
|
|
5
5
|
|
6
6
|
# * When the client does a GET request to "/items"
|
7
7
|
#
|
8
|
-
When(
|
8
|
+
When(/^the client does a GET request to "([^"]*)"$/) do |path|
|
9
9
|
get(path, {}, {})
|
10
10
|
end
|
11
11
|
|
12
12
|
# * When the client provides the header "Accept: application/hal+json"
|
13
13
|
#
|
14
|
-
When(/^the client provides the header ["'](
|
14
|
+
When(/^the client provides the header ["'](.*?)["']$/) do |header|
|
15
15
|
name, value = header.split(/\s*:\s*/)
|
16
16
|
header(name, value)
|
17
17
|
end
|
@@ -45,6 +45,8 @@ def prettify_hash(hash)
|
|
45
45
|
|
46
46
|
hash = unshift_hash_key('_embedded', hash)
|
47
47
|
hash = unshift_hash_key('_links', hash)
|
48
|
+
hash['_links'] = unshift_hash_key('health', hash['_links']) if hash['_links']
|
49
|
+
hash['_links'] = unshift_hash_key('api', hash['_links']) if hash['_links']
|
48
50
|
hash['_links'] = unshift_hash_key('self', hash['_links']) if hash['_links']
|
49
51
|
|
50
52
|
hash.sort.to_h
|
@@ -8,6 +8,7 @@ require 'cucumber/blendle/support/minitest'
|
|
8
8
|
require 'cucumber/blendle/support/rack_test'
|
9
9
|
|
10
10
|
require 'cucumber/blendle/steps/benchmark_steps'
|
11
|
+
require 'cucumber/blendle/steps/debug_steps'
|
11
12
|
require 'cucumber/blendle/steps/mock_server_steps'
|
12
13
|
require 'cucumber/blendle/steps/model_steps'
|
13
14
|
require 'cucumber/blendle/steps/resource_steps'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cucumber-blendle-steps
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jean Mertz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -323,6 +323,7 @@ files:
|
|
323
323
|
- cucumber-blendle-steps.gemspec
|
324
324
|
- lib/cucumber/blendle/helpers/liquid_filters.rb
|
325
325
|
- lib/cucumber/blendle/steps/benchmark_steps.rb
|
326
|
+
- lib/cucumber/blendle/steps/debug_steps.rb
|
326
327
|
- lib/cucumber/blendle/steps/mock_server_steps.rb
|
327
328
|
- lib/cucumber/blendle/steps/model_steps.rb
|
328
329
|
- lib/cucumber/blendle/steps/resource_steps.rb
|