aloha_analyzer 0.4.19 → 0.5.0
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4c74a63037fce24ea889b4185030c1cd3ece280
|
4
|
+
data.tar.gz: 4db0d4547339a4898399303322c7980b10baeed3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30650c84010fa4b79027ae6e4535dbea4395761163f1df4b2e3d57745c0197540046b177fc9a89698d441d6e144dd9e8cd8dfa8e53808ff0116126b308b7e927
|
7
|
+
data.tar.gz: 2a9eeb5487597f6e49a48e9e25e79eb878c127d77b488295f388ad040d37953b6dd8d4ec709b38fe6a4bfc024377a67ab6302d3fe07f1d73b5cd90a03210602d
|
@@ -32,7 +32,7 @@ describe AlohaAnalyzer::Language do
|
|
32
32
|
subject['abbreviation'].should eq 'fr'
|
33
33
|
end
|
34
34
|
|
35
|
-
it 'includes the languages
|
35
|
+
it 'includes the languages countries' do
|
36
36
|
subject['countries'].should eq 'France, Canada, Belgium, Switzerland'
|
37
37
|
end
|
38
38
|
end
|
@@ -40,8 +40,25 @@ describe AlohaAnalyzer::Language do
|
|
40
40
|
context 'when it does not exist' do
|
41
41
|
let(:abbreviation) { 'esperanto' }
|
42
42
|
|
43
|
-
it '
|
44
|
-
|
43
|
+
it 'returns a hash' do
|
44
|
+
subject.should be_a Hash
|
45
|
+
end
|
46
|
+
|
47
|
+
it 'has no population' do
|
48
|
+
subject['population'].should be_a Fixnum
|
49
|
+
subject['population'].should eq 0
|
50
|
+
end
|
51
|
+
|
52
|
+
it 'other as a name' do
|
53
|
+
subject['name'].should eq 'Other'
|
54
|
+
end
|
55
|
+
|
56
|
+
it 'includes the other abbreviation' do
|
57
|
+
subject['abbreviation'].should eq 'other'
|
58
|
+
end
|
59
|
+
|
60
|
+
it 'includes no countries' do
|
61
|
+
subject['countries'].should eq ''
|
45
62
|
end
|
46
63
|
end
|
47
64
|
end
|