Sha256: 0b429ce02edfe383287ba81e6fdd62c354df3a02c64740c9d724d8d72672a890

Contents?: true

Size: 822 Bytes

Versions: 1

Compression:

Stored size: 822 Bytes

Contents

=begin
* Description: Test Utility functions
* Author: Josh Bradley
* Date: 2014-05-06
* License: Public Domain
=end

require "test/unit"
require File.dirname(__FILE__) + '/../lib/adiwg-json_schemas.rb'

class TestUtils < Test::Unit::TestCase
    def test_examples_dir
        errors = File.exist?(ADIWG::JsonSchemas::Utils.examples_dir)
        assert_equal( true, errors, failure_message = 'Examples directory does not exist.')
    end

    def test_schema_path
        errors = File.file?(ADIWG::JsonSchemas::Utils.schema_path)
        assert_equal( true, errors, failure_message = 'File schema.json does not exist.')
    end

    def test_schema_dir
        errors = File.exist?(ADIWG::JsonSchemas::Utils.schema_dir)
        assert_equal( true, errors, failure_message = 'Schema directory does not exist.')
    end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
adiwg-json_schemas-0.5.2 test/tc_utils.rb