chiketto 0.1.2 → 0.1.3

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: 92e0b61671c1bb652bf1cd694ae5847b832ad2c2
4
- data.tar.gz: 7b7b121ca685c5c96d6d6a37c85f241ece0b1ada
3
+ metadata.gz: 3b6cfd69acf481181cfbb58396237f76f860e5d3
4
+ data.tar.gz: 50e2cdf38080af28d30fef2511cf81d24ce1375a
5
5
  SHA512:
6
- metadata.gz: 65366f24528bc323e4d41823dfc3b0860b7bcf95d9c43e45d3c1b02f24707181e7e47a8eecdf5a779fe73d5c5c0217a10312d24e7d26dee591f07f47316c4c34
7
- data.tar.gz: 503340e8ff16e01534245258fec086bdd6511d935083cb0b7d22225301df35324b212adb945de72a462c89ad3a66c840f53fb740326b1872091677db5ec06a8f
6
+ metadata.gz: fc719fa70e0099167da948d9328294e829cecaf4d5ac0ec4fe53d2f085a8edbec90b1a5e0139d8336aba55591a5c3b70240965cb477aef78a8201d9c97fb3f6b
7
+ data.tar.gz: dce932c7433744a658efebc30c642a65ffd795e58e13c8060eeb9c9e61461263a5f45f9849f6b6d5ba7f6c609d48ab3117a672495e7548d3af21de8ae872f48a
@@ -4,7 +4,8 @@ module Chiketto
4
4
  :status,
5
5
  :ticket_class_id,
6
6
  :event_id,
7
- :order_id
7
+ :order_id,
8
+ :assigned_number
8
9
 
9
10
  attr_date :changed,
10
11
  :created
@@ -1,3 +1,3 @@
1
1
  module Chiketto
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -10,6 +10,7 @@ class AttendeeTest < MiniTest::Test
10
10
  assert_respond_to attendee, :event_id
11
11
  assert_respond_to attendee, :order_id
12
12
  assert_respond_to attendee, :addresses
13
+ assert_respond_to attendee, :assigned_number
13
14
  end
14
15
 
15
16
  def test_attr_date_types
@@ -29,4 +30,9 @@ class AttendeeTest < MiniTest::Test
29
30
  assert_kind_of Hash, attendee.addresses
30
31
  assert_kind_of Chiketto::Address, attendee.addresses.values.first
31
32
  end
33
+
34
+ def test_assigned_number_is_handled
35
+ attendee = Chiketto::Attendee.new assigned_number: 1
36
+ assert_equal attendee.assigned_number, 1
37
+ end
32
38
  end
@@ -99,6 +99,14 @@ class EventTest < MiniTest::Test
99
99
  assert_kind_of Array, @attendees
100
100
  end
101
101
 
102
+ def test_attendees_returns_an_array_of_attendees_with_assigned_numbers
103
+ find_event
104
+ VCR.use_cassette 'event-attendees-expand-assigned' do
105
+ @attendees = @event.attendees expand: 'assigned_number'
106
+ end
107
+ assert_kind_of Array, @attendees
108
+ end
109
+
102
110
  def test_updates_event_with_params
103
111
  VCR.use_cassette 'event-update' do
104
112
  find_event
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chiketto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Radford
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-20 00:00:00.000000000 Z
11
+ date: 2014-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler