Sha256: f5293ff1798c2c29a86998408665d848c907ea50cf1389da74d8c6800397a291

Contents?: true

Size: 478 Bytes

Versions: 2

Compression:

Stored size: 478 Bytes

Contents

require 'spec_helper'

describe HappyPdf::Schema do

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

  context 'read schemata' do

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

  end


end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
happypdf_json_schema-0.0.3 spec/happypdf_schema_spec.rb
happypdf_json_schema-0.0.2 spec/happypdf_schema_spec.rb