Sha256: f7d6ea545008a4317b71f9f68b668d6ee41c7b8f47633c3269121192ab3902f4
Contents?: true
Size: 674 Bytes
Versions: 1
Compression:
Stored size: 674 Bytes
Contents
require File.dirname(__FILE__) + '/../test_helper' class GetAccountsTest < Test::Unit::TestCase include IntegrationTestMethods def setup @gateway = XeroGateway::Gateway.new( :customer_key => CUSTOMER_KEY, :api_key => API_KEY ) if STUB_XERO_CALLS @gateway.xero_url = "DUMMY_URL" @gateway.stubs(:http_get).with {|url, params| url =~ /accounts$/ }.returns(get_file_as_string("accounts.xml")) end end def test_get_accounts result = @gateway.get_accounts assert result.success? assert result.accounts.size > 0 assert_equal XeroGateway::Account, result.accounts.first.class end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tlconnor-xero_gateway-1.0.2 | test/integration/get_accounts_test.rb |