locations_ng 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd6a119150f710c2249b1a9023afd76b449a4621
|
4
|
+
data.tar.gz: eb979e5c18d214931235c367de8aa3ee7b42de0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2649379d702a7a37055c1b8aaec32982edaa3997530a19a68d5e5a6e57a3dff12affe5b6bd7bd3f3e3e6d34432da1b3f853e8ae757895c1e3e9a272f0104309e
|
7
|
+
data.tar.gz: b7e514d95187a3177ae6d533d80bf525221c17f3f9b5b5b64ea586f8ef4580b37705cd097369296310d84aaac0d2c5b9a47418e69fd48fdfe69b7c317837a61a
|
data/lib/locations_ng/city.rb
CHANGED
data/lib/locations_ng/version.rb
CHANGED
@@ -23,6 +23,10 @@ module LocationsNg
|
|
23
23
|
it 'returns the cities of a specific state' do
|
24
24
|
expect(city.cities('Akwa Ibom')).to eq(['Eket', 'Ikot Ekpene', 'Oron', 'Uyo'])
|
25
25
|
end
|
26
|
+
|
27
|
+
it 'returns the cities for FCT' do
|
28
|
+
expect(city.cities('Federal Capital Territory')).to eq(%w(Abuja))
|
29
|
+
end
|
26
30
|
end
|
27
31
|
end
|
28
32
|
end
|
data/spec/responses/cities.json
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: locations_ng
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fiyin Adebayo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|