Sha256: f623212d50c1db70e68bc4a2aa4d4dfe22949806fd1726c3c79c7de769f06c88

Contents?: true

Size: 696 Bytes

Versions: 11

Compression:

Stored size: 696 Bytes

Contents

require 'minitest/autorun'
require_relative './common_setup_and_teardown.rb'

class TexMasterTest < Minitest::Test
  include CommonSetupAndTeardown

  def setup
    super("tax_masters")
  end

  def test_list_tax_masters
    tax_masters = @api.list_tax_masters
    assert_equal 200, tax_masters[:status].to_i, tax_masters.inspect
    assert !tax_masters[:json].empty?
  end

  def test_show_tax_master
    tax_masters = @api.list_tax_masters
    first_tax_master = tax_masters[:json].first
    tax_master = @api.show_tax_master(first_tax_master[:id])

    assert_equal 200, tax_master[:status].to_i, tax_master.inspect
    assert_equal first_tax_master[:name], tax_master[:json][:name]
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
tsubaiso-sdk-1.2.17 test/tsubaiso_sdk/test_tax_master.rb
tsubaiso-sdk-1.2.16 test/tsubaiso_sdk/test_tax_master.rb
tsubaiso-sdk-1.2.15 test/tsubaiso_sdk/test_tax_master.rb
tsubaiso-sdk-1.2.14 test/tsubaiso_sdk/test_tax_master.rb
tsubaiso-sdk-1.2.13 test/tsubaiso_sdk/test_tax_master.rb
tsubaiso-sdk-1.2.12 test/tsubaiso_sdk/test_tax_master.rb
tsubaiso-sdk-1.2.11 test/tsubaiso_sdk/test_tax_master.rb
tsubaiso-sdk-1.2.10 test/tsubaiso_sdk/test_tax_master.rb
tsubaiso-sdk-1.2.9 test/tsubaiso_sdk/test_tax_master.rb
tsubaiso-sdk-1.2.8 test/tsubaiso_sdk/test_tax_master.rb
tsubaiso-sdk-1.2.7 test/tsubaiso_sdk/test_tax_master.rb