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 +4 -4
- data/lib/chiketto/attendee.rb +2 -1
- data/lib/chiketto/version.rb +1 -1
- data/test/attendee_test.rb +6 -0
- data/test/event_test.rb +8 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b6cfd69acf481181cfbb58396237f76f860e5d3
|
4
|
+
data.tar.gz: 50e2cdf38080af28d30fef2511cf81d24ce1375a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc719fa70e0099167da948d9328294e829cecaf4d5ac0ec4fe53d2f085a8edbec90b1a5e0139d8336aba55591a5c3b70240965cb477aef78a8201d9c97fb3f6b
|
7
|
+
data.tar.gz: dce932c7433744a658efebc30c642a65ffd795e58e13c8060eeb9c9e61461263a5f45f9849f6b6d5ba7f6c609d48ab3117a672495e7548d3af21de8ae872f48a
|
data/lib/chiketto/attendee.rb
CHANGED
data/lib/chiketto/version.rb
CHANGED
data/test/attendee_test.rb
CHANGED
@@ -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
|
data/test/event_test.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2014-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|