Sha256: 04ee526f593e9133428d487722e2250732fd5c9d9c78cb75d8c1af2988a7b627

Contents?: true

Size: 902 Bytes

Versions: 16

Compression:

Stored size: 902 Bytes

Contents

require 'helper'

class TestReferenceClient < Test::Unit::TestCase
  should "test get categories" do
    client = ReferenceClient.new
    categories = client.get_categories
    assert_equal Array, categories.class
    assert_equal Category, categories.first.class
  end

  should "test get category" do
    client = ReferenceClient.new
    category = client.get_category("VAUT")
    assert_equal "VAUT", category.code
    assert_equal "Autos", category.category
    assert_equal "Vehicles", category.group
  end

  should "test get locations" do
    client = ReferenceClient.new
    locations = client.get_locations
    assert_equal Array, locations.class
    assert_equal Location, locations.first.class
  end

  should "test get sources" do
    client = ReferenceClient.new
    sources = client.get_sources
    assert_equal Array, sources.class
    assert_equal Source, sources.first.class
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
threetaps-client-1.0.14 test/client/test_reference_client.rb
threetaps-client-1.0.13 test/client/test_reference_client.rb
threetaps-client-1.0.12 test/client/test_reference_client.rb
threetaps-client-1.0.11 test/client/test_reference_client.rb
threetaps-client-1.0.10 test/client/test_reference_client.rb
threetaps-client-1.0.9 test/client/test_reference_client.rb
threetaps-client-1.0.8 test/client/test_reference_client.rb
threetaps-client-1.0.7 test/client/test_reference_client.rb
threetaps-client-1.0.6 test/client/test_reference_client.rb
threetaps-client-1.0.5 test/client/test_reference_client.rb
threetaps-client-1.0.4 test/client/test_reference_client.rb
threetaps-client-1.0.3 test/client/test_reference_client.rb
threetaps-client-1.0.2 test/client/test_reference_client.rb
threetaps-client-1.0.1 test/client/test_reference_client.rb
threetaps-client-1.0.0 test/client/test_reference_client.rb
threetaps-client-0.5.1 test/client/test_reference_client.rb