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