rester 0.3.1 → 0.3.2

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: a486ccadfe2ebef7a59324907fd282d8895a6e6c
4
- data.tar.gz: cfeda2d0d5d1f029ef4108d1855c017803de5446
3
+ metadata.gz: 79a956ec7341aeae0c4895abc0684e5263768db7
4
+ data.tar.gz: d6df4b2046cf53633904e640fc9fd6f73ac54946
5
5
  SHA512:
6
- metadata.gz: 456cd0d730812c7b1f643bda679c45ad83e83f091ab3cc2a59d2040044bdcc7e17ceed70aacc38272b620617e8efbbc76656bf9a3ca69c291fe2a458af5076c2
7
- data.tar.gz: 5e930154548a07aafe4e828c92a1a70b1655657701b2968eabace6d733c40700c2858ff9131ccc01194a6dcba9c494e845ea9e48a890af121233a22f28552812
6
+ metadata.gz: a7fb0534dc29e1212502043018e4168f1a0e85bfda35c5566ce737e7d06d3c5a77d37fc371d1e671d689c162730bb779a9feeea365060a4699f3f4c06103b771
7
+ data.tar.gz: 2cd61c0e13f38878324282d630c0945aca0465d1690a8a20db723204e085611342c66c480ee38a0de7d0708691a7d1cbf69de90c9a89ec81b8a2ba5d9ee6a304
@@ -66,8 +66,7 @@ module Rester
66
66
  end
67
67
 
68
68
  # Verify body, if there is one
69
- request = action['request'] || {}
70
- unless Utils.symbolize_keys(request) == params
69
+ unless (request = action['request'] || {}) == params
71
70
  fail Errors::StubError,
72
71
  "#{verb} #{path} with context '#{context}' params don't match stub. Expected: #{request} Got: #{params}"
73
72
  end
@@ -82,10 +81,10 @@ module Rester
82
81
  # Find the first request object with the same params as what's passed in.
83
82
  # Useful for testing without having to set the context.
84
83
  def _find_context_by_params(path, verb, params)
85
- (stub[path][verb].find { |context, action|
86
- Utils.symbolize_keys(action['request'] || {}) == params
84
+ (stub[path][verb].find { |_, action|
85
+ (action['request'] || {}) == params
87
86
  } || []).first
88
87
  end
89
88
  end # StubAdapter
90
89
  end # Client::Adapters
91
- end # Rester
90
+ end # Rester
@@ -1,3 +1,3 @@
1
1
  module Rester
2
- VERSION = '0.3.1'
2
+ VERSION = '0.3.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rester
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Honer