json_rspec_match_maker 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/json_rspec_match_maker/expected_value.rb +1 -0
- data/lib/json_rspec_match_maker/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea2a29e3eca4659b3fb4f34124d0e5ea6735f8f1aee631d1fb10a0c721eb77fd
|
4
|
+
data.tar.gz: 783b6f2a9727f3d3e21236aa53559c4c6c70ed0389b3e477c57a23b92a5d8134
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b83709309ab2736353d258955d650e500e35a370a96aa4519e19e7c94416b005bf8e7a19de09913aa5717601dd9919769db0d36ccf9f6c83262786e25f6e6ae
|
7
|
+
data.tar.gz: '04564927c70ac727a3a3c28e19fea5c3f144541acd639b5ec8413c6eb0ec4cc97a1b1c6efa6bc3ac7032a5feddb82e5559eecfeb83954b29416712d24bc42095'
|
data/Gemfile.lock
CHANGED
@@ -18,6 +18,7 @@ module JsonRspecMatchMaker
|
|
18
18
|
def fetch_expected_value(instance, function, key, prefix)
|
19
19
|
if function == :default
|
20
20
|
key.split('.').inject(instance) do |expected, method_name|
|
21
|
+
method_name = method_name.chomp('_attributes')
|
21
22
|
method_name == prefix ? expected : expected&.send(method_name)
|
22
23
|
rescue NoMethodError
|
23
24
|
nil
|