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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e9b9b8ebc9e0d1a3fd8c8ac55f25e768e17f5468
4
- data.tar.gz: b02a245fb76e8323168815cc61a3f66203c451bc
3
+ metadata.gz: 8cfc035e3cde45c3d7899a440a473b37a2c8ef2a
4
+ data.tar.gz: b9eb6d3a080cbb5aeab0c4aedbb9595e7e32423b
5
5
  SHA512:
6
- metadata.gz: 492b3f92a26881cfc6de5d2da01aabd1098f695c127692d5cea71a93ec4da79f3e40c7581ffdab87f4e07dc46c61fd3a2a629776ae79ec08d7faceded29d87c3
7
- data.tar.gz: a01143a4933d11f52cac3f3ff66e4be25d2e603c5cf5f32a101fbb27b01ce35405ad468c57e2eef9d46c9e634fad5b73eb992f79a81c40669ea0a7b36c07f009
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
 
@@ -0,0 +1,6 @@
1
+ # * Then I want to pry
2
+ # * Then I want to debug
3
+ #
4
+ Then(/^I want to (?:pry|debug)$/) do
5
+ require 'pry'; binding.pry # rubocop:disable Lint/Debugger,Style/Semicolon
6
+ end
@@ -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, 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('the client does a GET request to "$1"') do |path|
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 ["']([^"']*)["']$/) do |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
@@ -6,6 +6,6 @@ module Cucumber
6
6
  # This module defines default steps used by all of Blendle Ruby projects.
7
7
  #
8
8
  module BlendleSteps
9
- VERSION = '0.8.4'.freeze
9
+ VERSION = '0.8.5'.freeze
10
10
  end
11
11
  end
@@ -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
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-05 00:00:00.000000000 Z
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