chiketto 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chiketto/venue.rb +4 -0
- data/lib/chiketto/version.rb +1 -1
- data/test/venue_test.rb +13 -5
- 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: edd101c309245dab659a118a4778faf38bb626f0
|
4
|
+
data.tar.gz: 7c814614b73a11354593f9c417e8e9beefed3fc9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06d6a999ca1bcd4c02a92bb9c7bf68f2f64ee778e2f911ae1a0d337ce4cdbc3bbdf3d4291c9cb60da99cd068aa78af6c70528d888289e808e193b4af50c08679
|
7
|
+
data.tar.gz: 90a7d44e9f12f9f355cfa617925086fc1712b0535f1c7bc569b9ce6f87b28393d4fcd3b60b723dcf1725052c2881817eccc72a313d237fd4d2e8844c685d12a4
|
data/lib/chiketto/venue.rb
CHANGED
data/lib/chiketto/version.rb
CHANGED
data/test/venue_test.rb
CHANGED
@@ -1,6 +1,13 @@
|
|
1
1
|
require 'test_helper'
|
2
2
|
|
3
3
|
class VenueTest < MiniTest::Test
|
4
|
+
def basic_venue
|
5
|
+
@venue = Chiketto::Venue.new 'id' => '545454',
|
6
|
+
'latitude' => '42.3618641',
|
7
|
+
'longitude' => '-71.0905626',
|
8
|
+
'name' => 'Eventbrite HQ'
|
9
|
+
end
|
10
|
+
|
4
11
|
def test_venue_methods_exist
|
5
12
|
@venue = Chiketto::Venue.new 'id' => '545454',
|
6
13
|
'address' => {
|
@@ -23,11 +30,12 @@ class VenueTest < MiniTest::Test
|
|
23
30
|
end
|
24
31
|
|
25
32
|
def test_venue_with_no_address
|
26
|
-
|
27
|
-
'latitude' => '42.3618641',
|
28
|
-
'longitude' => '-71.0905626',
|
29
|
-
'name' => 'Eventbrite HQ'
|
30
|
-
|
33
|
+
basic_venue
|
31
34
|
assert_respond_to @venue.address, :to_s
|
32
35
|
end
|
36
|
+
|
37
|
+
def test_venue_returns_name_for_to_s
|
38
|
+
basic_venue
|
39
|
+
assert_equal @venue.to_s, @venue.name
|
40
|
+
end
|
33
41
|
end
|