collectable 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +1 -0
- data/lib/collectable/version.rb +1 -1
- data/lib/collectable.rb +8 -0
- data/spec/collectable_spec.rb +20 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MmU1ZGIxYTY3YmRkOGQ0ODkxZWYyYTM2NDI4NzE2YWY3NTA1YTY3Ng==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZWRiNTQ1NDVkMjA3ZmJiZGFkM2JkMTg5NDhkMTNhYThiMThlOTVjYg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Yjk0NzUzYzg4Y2Q4M2FmYTgxMmUzMTdiYWMyMDQ0Yjk1MzYwY2I3MmNjODcx
|
10
|
+
NDE5YmJmYWY1ZTNkZDU5YmQxNWI5ZGU5OGY1ZDY1YjdmMTVhYzUzZjI2Nzc1
|
11
|
+
NGUzNjc5OWVhMjJmMTgyMDQ0MjI3OGI4YTEwM2IwZWJmYmFjNjg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MWNhODlmZGRjYjEzNmE5MmIwNzE1ZmRjYmIwY2Y5NDkwOTcxZTJkZTYxZDgx
|
14
|
+
NTZhZGZhNWE3OTE0ODMwZmU0YjNlNTBjMDZhYTI3NGIzYmI1MTIwNTQ4ZGMy
|
15
|
+
MGJjZmRhNWE0N2Y1YTZiMjNjYzcwNjlmMjBjYTBmMGE4NTc4ZDE=
|
data/README.md
CHANGED
data/lib/collectable/version.rb
CHANGED
data/lib/collectable.rb
CHANGED
data/spec/collectable_spec.rb
CHANGED
@@ -34,6 +34,26 @@ describe Collectable do
|
|
34
34
|
it 'knows how to collect the traits' do
|
35
35
|
expect(dummy).to respond_to(:collected)
|
36
36
|
end
|
37
|
+
|
38
|
+
it 'knows what method gets a value for a collected trait' do
|
39
|
+
expect(dummy).to respond_to(:value)
|
40
|
+
end
|
41
|
+
|
42
|
+
it 'knows what method gets a name for a collected trait' do
|
43
|
+
expect(dummy).to respond_to(:name)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe '.value' do
|
48
|
+
it 'is :value' do
|
49
|
+
expect(Dummy.value).to eql(:value)
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
describe '.name' do
|
54
|
+
it 'is :name' do
|
55
|
+
expect(Dummy.name).to eql(:name)
|
56
|
+
end
|
37
57
|
end
|
38
58
|
|
39
59
|
describe '.trait' do
|