rspec_candy 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NjQyZGUwYzIwZmNlMzJlZmY2NzA5ZDY1MDdiY2QzOWY0M2I3OWNkYQ==
4
+ ZTBiZDg3ZDliODM4N2Q4NTZmZWNkMWFlNDUyM2RjZmM2MDA4ZmQ5NQ==
5
5
  data.tar.gz: !binary |-
6
- ZGY5ZWE3OTFlNTBhNTZkNmI5OGUyYTUwYjg5Y2FlMDJkOGE0MGY5NQ==
6
+ NmIxNzY4YmIyMWJmMTNiMTQ0MGMyNjFlMzBkN2QxZmQ1NjFlZmU1Mg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NDRmMGNmMGY5ODEwZDI5YzY5OTc2YWUzYjY2NmM2MGRlYjkzNWZlYTNkNWRi
10
- NDVmMjlhZGNmYzNjMjRjNDZkYzg2ZWY3MzE0ODc5YjJlZDhjNmRjOWM3M2Zl
11
- OWI3YmRmY2Y3N2U4NTA5YzJlNTkzZWEzNGQzMjVjMTgzYjAxYWI=
9
+ MzJlZDhiYTRhZGUxM2ZhMWM2MjYwNjhjNzIzYTdkZjE1OTdmMTA3NGViYzFi
10
+ MzU0NTM3MjUyYmQzYmU1ZjNiYTljMGYzOGQzZmU4MWZmNzIwZTVmMWI3ZjEw
11
+ MjA4OTY2ZDMzNzg3YmRjZDFmODBiZmUwMDI5MzAxYWQ3YjA5MzA=
12
12
  data.tar.gz: !binary |-
13
- YWI4N2E1OWM4ZTI4ZWM1ZGRkZDViYzRiMzdlOGQ5OTM3YzM1NzM0ZTg1NzM0
14
- NGIzNWE2M2QwODM4ZGU3NjhhOGU0Y2Y0ODFmODMxOTlhZTZkOTNkMTIzMWNm
15
- ZjVhNmIxOWExNTM3NDY1YjhmMDQ2ZmVhYzFhNTU1ODhhYTg3ZWY=
13
+ YmYyNGMxOWY0NTE1ZDRhMGViNTc5YWRkMWI0M2Y2NWZhYTAzNmRkN2Q0YmZl
14
+ MDExZjJjNTFlZDQyZGMyNzNmOWU3YmRhN2RlMTQ5YjEzYjE3YjU5ZGEyNzA5
15
+ ZGU5MWU1YjBiZTE1NjBiZmI1YzUyYjkzMjdlZWIxOTRkM2M0MjI=
@@ -1,7 +1,7 @@
1
1
  RSpecCandy::Switcher.define_matcher :include_hash do |expected|
2
2
 
3
3
  match do |actual|
4
- !actual.nil? && actual.slice(*expected.keys) == expected
4
+ !actual.nil? && expected.values == actual.values_at(*expected.keys)
5
5
  end
6
6
 
7
7
  end
@@ -1,3 +1,3 @@
1
1
  module RSpecCandy
2
- VERSION = '0.5.0'
2
+ VERSION = '0.5.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec_candy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henning Koch
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-01-12 00:00:00.000000000 Z
12
+ date: 2018-02-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec