cryptozoologist 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cryptozoologist/dictionary.rb +8 -0
- data/lib/cryptozoologist/version.rb +1 -1
- data/spec/cryptozoologist/dictionary_spec.rb +6 -28
- 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: dd5e660c2e2933d44cc36660e28cbf7b020e22a7
|
4
|
+
data.tar.gz: a14810a76aa03107faacd3d8b4802efacb6bd1a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00d2393f1aa24946ccbe019305e6d2b477252cb7c31b1df764caf708e825a568adc9f3788c1b574b9e78a9a19fbe004b9cc211080d5df95f987534430ef70333
|
7
|
+
data.tar.gz: fff4b36b58fd513a2db9f8e8089ec7f1d401db9fc293f1275ff718047383ca65e187577633e1281d3ac0cfad9008693f4190f92468fd8bc1ecad0c1d481d2620
|
@@ -5,35 +5,13 @@ describe Cryptozoologist::Dictionary do
|
|
5
5
|
@dictionary = Cryptozoologist::Dictionary.new
|
6
6
|
end
|
7
7
|
|
8
|
-
|
9
|
-
it 'has an animal list' do
|
10
|
-
expect(@dictionary.animals.length).to be > 1
|
11
|
-
end
|
12
|
-
|
13
|
-
it 'contains Common animals' do
|
14
|
-
common = Cryptozoologist::Dictionaries::Animals::Common.list
|
15
|
-
expect(@dictionary.animals.include?(common.sample)).to be true
|
16
|
-
end
|
17
|
-
|
18
|
-
it 'contains Mythical creatures' do
|
19
|
-
mythical = Cryptozoologist::Dictionaries::Animals::Mythical.list
|
20
|
-
expect(@dictionary.animals.include?(mythical.sample)).to be true
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
context '#colors' do
|
25
|
-
it 'has a color list' do
|
26
|
-
expect(@dictionary.colors.length).to be > 1
|
27
|
-
end
|
28
|
-
|
29
|
-
it 'contains paint colors' do
|
30
|
-
paint = Cryptozoologist::Dictionaries::Colors::Paint.list
|
31
|
-
expect(@dictionary.colors.include?(paint.sample)).to be true
|
32
|
-
end
|
8
|
+
lists = [:animals, :colors, :clothing, :quantity]
|
33
9
|
|
34
|
-
|
35
|
-
|
36
|
-
|
10
|
+
context 'word lists' do
|
11
|
+
lists.each do |list|
|
12
|
+
it "has #{list}" do
|
13
|
+
expect(@dictionary.send(list).length).to be > 1
|
14
|
+
end
|
37
15
|
end
|
38
16
|
end
|
39
17
|
end
|