Permalink
Browse files

add stub response for users api

  • Loading branch information...
1 parent 348c01a commit 79c8ddc62bf92b5b82c192bf02fd943d97fb23ac @davidlumley davidlumley committed Dec 5, 2013
Showing with 17 additions and 1 deletion.
  1. +16 −0 test/stub_responses/users.xml
  2. +1 −1 test/unit/record_definition_test.rb
@@ -0,0 +1,16 @@
+<Response xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <Id>82fc227d-ad9f-42ed-98aa-583abc49bb54</Id>
+ <Status>OK</Status>
+ <ProviderName>Test Provider Name</ProviderName>
+ <DateTimeUTC>2013-12-05T05:36:43.1758494Z</DateTimeUTC>
+ <Users>
+ <User>
+ <UserID>1a535a0d-68fa-403a-b101-36c019c1995a</UserID>
+ <FirstName>User</FirstName>
+ <LastName>Name</LastName>
+ <UpdatedDateUTC>2013-07-08T07:27:11.62</UpdatedDateUTC>
+ <IsSubscriber>true</IsSubscriber>
+ <OrganisationRole>STANDARD</OrganisationRole>
+ </User>
+ </Users>
+</Response>
@@ -13,7 +13,7 @@ def setup
[
:Account, :BrandingTheme, :Contact, :CreditNote, :Currency, :Invoice,
:Item, :Journal, :ManualJournal, :Organisation, :Payment, :TaxRate,
- :TrackingCategory
+ :TrackingCategory, :User
].each do | record_type |
record_factory = @client.send(record_type)
assert_kind_of(Xeroizer::Record::BaseModel, record_factory)

0 comments on commit 79c8ddc

Please sign in to comment.