Skip to content

Commit

Permalink
add stub response for users api
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlumley committed Dec 5, 2013
1 parent 348c01a commit 79c8ddc
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions test/stub_responses/users.xml
@@ -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>
2 changes: 1 addition & 1 deletion test/unit/record_definition_test.rb
Expand Up @@ -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)
Expand Down

0 comments on commit 79c8ddc

Please sign in to comment.