Sha256: 100f0768b7d13ae04880e15421f23c64b415737dd892f78b4eb69cbbe24318e1

Contents?: true

Size: 475 Bytes

Versions: 3

Compression:

Stored size: 475 Bytes

Contents

require 'spec/unit/unit_spec_helper'
require 'kwalify'

describe 'YAML adapter schema' do
  before :all do
    meta_validator = Kwalify::MetaValidator.instance
    @parser = Kwalify::Yaml::Parser.new(meta_validator)
  end

  it 'does not produce errors' do
    # NOTE may not work with different working dir
    @parser.parse_file(File.expand_path('schemas/api.adapter.schema.yml'))
    errors = @parser.errors
    expect(errors).to match_array([])
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
nucleus-0.3.1 spec/unit/schemas/adapter_schema_spec.rb
nucleus-0.2.0 spec/unit/schemas/adapter_schema_spec.rb
nucleus-0.1.0 spec/unit/schemas/adapter_schema_spec.rb