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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 597c1bb7dd4646d811040dbd7a0713ddbae078c9
4
- data.tar.gz: 4cd2ef48d190883fb951b22535d9faada5b8b3eb
3
+ metadata.gz: edd101c309245dab659a118a4778faf38bb626f0
4
+ data.tar.gz: 7c814614b73a11354593f9c417e8e9beefed3fc9
5
5
  SHA512:
6
- metadata.gz: 3734f101c16531d188a09713d0b06e628d86689d26cdc6f98043f01b25dba0c3dfaf07b7e549ff8039c25a5d4596a66dcbf173148608a238f042496fd6d6cb16
7
- data.tar.gz: b34b69a561016b4bd94e9fa6245805846b37e46a5dbb836ae1f746040ff0533c59c2116ae6d92edf72ece475c17d84bb63ec722fc204badb2780afe15cce8b26
6
+ metadata.gz: 06d6a999ca1bcd4c02a92bb9c7bf68f2f64ee778e2f911ae1a0d337ce4cdbc3bbdf3d4291c9cb60da99cd068aa78af6c70528d888289e808e193b4af50c08679
7
+ data.tar.gz: 90a7d44e9f12f9f355cfa617925086fc1712b0535f1c7bc569b9ce6f87b28393d4fcd3b60b723dcf1725052c2881817eccc72a313d237fd4d2e8844c685d12a4
@@ -7,5 +7,9 @@ module Chiketto
7
7
  def address
8
8
  Chiketto::Address.new @address.to_h
9
9
  end
10
+
11
+ def to_s
12
+ @name
13
+ end
10
14
  end
11
15
  end
@@ -1,3 +1,3 @@
1
1
  module Chiketto
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
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
- @venue = Chiketto::Venue.new 'id' => '545454',
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chiketto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Radford