wcc-arena 0.2.0 → 0.2.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: 78c775b268d1495b0152e28aae31f6f6ad495b33
4
- data.tar.gz: 373f450d5c5e8a9ae3ec92df844f19175fc9010e
3
+ metadata.gz: 00034fba0404c3acd477309cf2547603b1e24b4b
4
+ data.tar.gz: ab1b9a3ee1243b075ee8ae65f9ed8050dd2b2535
5
5
  SHA512:
6
- metadata.gz: 3dad2d3af57efabe8fede201ac7f1acc1e29356c30bc6b15307758943168c10f2b78d45b208ac0a1bd6212518f92fd788d98c5d29ea062e280282657138d988e
7
- data.tar.gz: 193c355b203bfd6cde237e4c22888d7eb78a800f31a5bc4361561270c353b4bfe3ea9531fa8799f1454e63a744310f1183bcdb266ebf5e1d3e7d1a646ae1845b
6
+ metadata.gz: 270c2cf5f3dfeebf91b8d5629f5d675867058b8a01685382775ba8971eb5d00de6ccd20636f79bfd1161fa672c8ef0649904cbe57811707eea261c71eca7d14c
7
+ data.tar.gz: a6b66fe9ecdcc8f7390d0d8b040ca31310cfb43e9db4b1e0775f7ea1324b37a514cb1c23fcff480782027d29848750f26755c2cb9294380f34635f53cf74ce3b
@@ -9,7 +9,7 @@ module WCC::Arena
9
9
  end
10
10
 
11
11
  def call
12
- Person.new(response_person_xml)
12
+ Person.new(response_person_xml) if response_person_xml
13
13
  end
14
14
 
15
15
  private
@@ -1,5 +1,5 @@
1
1
  module WCC
2
2
  module Arena
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
@@ -0,0 +1,4 @@
1
+ <Error>
2
+ <StatusCode>404</StatusCode>
3
+ <Message>Invalid person id or guid</Message>
4
+ </Error>
@@ -45,5 +45,11 @@ describe WCC::Arena::SinglePersonQuery do
45
45
  expect(record.first_name).to eq("Donald")
46
46
  expect(record.last_name).to eq("Duck")
47
47
  end
48
+
49
+ it "returns nil when person not found" do
50
+ subject.session
51
+ .stub(:get) { xml_fixture_response("person_not_found.xml") }
52
+ expect(subject.()).to be_nil
53
+ end
48
54
  end
49
55
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wcc-arena
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Travis Petticrew
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-10-22 00:00:00.000000000 Z
12
+ date: 2015-10-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday
@@ -133,6 +133,7 @@ files:
133
133
  - spec/fixtures/person_attribute_list.xml
134
134
  - spec/fixtures/person_group_list.xml
135
135
  - spec/fixtures/person_list.xml
136
+ - spec/fixtures/person_not_found.xml
136
137
  - spec/fixtures/profile_list.xml
137
138
  - spec/fixtures/profile_member_list.xml
138
139
  - spec/fixtures/profile_member_save.xml
@@ -220,6 +221,7 @@ test_files:
220
221
  - spec/fixtures/person_attribute_list.xml
221
222
  - spec/fixtures/person_group_list.xml
222
223
  - spec/fixtures/person_list.xml
224
+ - spec/fixtures/person_not_found.xml
223
225
  - spec/fixtures/profile_list.xml
224
226
  - spec/fixtures/profile_member_list.xml
225
227
  - spec/fixtures/profile_member_save.xml