Sha256: b186105b865016de9c176331220e60f9029462f32d93ef28724427c05b2a25ee

Contents?: true

Size: 465 Bytes

Versions: 3

Compression:

Stored size: 465 Bytes

Contents

require 'spec_helper'

describe DocTag::Schema do

  context 'path' do
    it 'should provide path to schema files' do
      DocTag::Schema.path.should == File.expand_path( File.join('../schema'), File.dirname(__FILE__))
    end
  end

  context 'read schemata' do

    it 'should read all json files' do
      SchemaTools.schema_path = DocTag::Schema.path
      SchemaTools::Reader.read_all
      SchemaTools::Reader.registry.should_not be_empty
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
doctag_json_schema-1.0.2 spec/doctag_schema_spec.rb
doctag_json_schema-1.0.1 spec/doctag_schema_spec.rb
doctag_json_schema-1.0.0 spec/doctag_schema_spec.rb