Sha256: 036bf822a4d82ecfd7a13050c148c53d2568254571db0f7687a8ab2c260a9f5f

Contents?: true

Size: 765 Bytes

Versions: 1

Compression:

Stored size: 765 Bytes

Contents

# * Description: Test Utility functions
# * Author: Josh Bradley
# * License: Public Domain

require 'minitest/autorun'
require File.join(File.dirname(__FILE__), '..', 'lib', 'adiwg-mdjson_schemas.rb')

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

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
adiwg-mdjson_schemas-2.0.0.pre.alpha test/tc_utils.rb