delegate_matcher 0.4 → 0.4.1
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/Gemfile.lock +1 -1
- data/README.md +0 -4
- data/lib/delegate_matcher/version.rb +1 -1
- data/spec/examples/forwardable_delegation_spec.rb +0 -4
- data/spec/shared/post_delegation.rb +0 -6
- data/spec/to_an_object_spec.rb +4 -0
- data/spec/with_to_spec.rb +0 -12
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 105eec3e18f2ea40bd320dd1d1f74950be80fae3
|
4
|
+
data.tar.gz: f72c454e7faa63495c2a8938ba5ebd42772d600b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89947002c86c4f5986bdcadf6f55abca78cc2f2023f821725895bf891339c204fb569860c93ca43332b3b853ec141f7d59a8e0201baf16592d48dd86faab7cf6
|
7
|
+
data.tar.gz: 53e80e2d40604ede3836dad8545ed58bb89c9cf8d845faf27915ef413146132a83f0a61a989a4099dc393495a61721335b2ed062aa844228bce34b7b33b9a147
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -13,10 +13,6 @@ module RSpec
|
|
13
13
|
def initialize
|
14
14
|
@author = Author.new
|
15
15
|
end
|
16
|
-
|
17
|
-
def name
|
18
|
-
@author.name
|
19
|
-
end
|
20
16
|
end
|
21
17
|
end
|
22
18
|
|
@@ -31,8 +27,6 @@ module RSpec
|
|
31
27
|
return klass.description if klass.respond_to?(:description) && klass.description =~ /def \w*name/
|
32
28
|
klass = klass.parent
|
33
29
|
end
|
34
|
-
|
35
|
-
'# Could not find "def \w*name..." method definition'
|
36
30
|
end
|
37
31
|
|
38
32
|
let(:matcher) { delegate(:name).to(:@author) }
|
data/spec/to_an_object_spec.rb
CHANGED
@@ -39,6 +39,10 @@ module RSpec
|
|
39
39
|
expect { should delegate(:name).to(author).allow_nil(false) }.to \
|
40
40
|
raise_error RuntimeError, 'cannot verify "allow_nil" expectations when delegating to an object'
|
41
41
|
end
|
42
|
+
|
43
|
+
it 'prefex should be ignored' do
|
44
|
+
should delegate(:name).to(author).with_prefix
|
45
|
+
end
|
42
46
|
end
|
43
47
|
end
|
44
48
|
end
|
data/spec/with_to_spec.rb
CHANGED