Sha256: 62f1617a823014e1af50fe72f1f44d563e41b7ee2772a14800b2eed00336a7a0

Contents?: true

Size: 421 Bytes

Versions: 5

Compression:

Stored size: 421 Bytes

Contents

require "json/matchers/version"
require "json/matchers/matcher"
require "json/matchers/errors"
require "active_support/all"

module JSON
  module Matchers
    mattr_accessor :schema_root

    self.schema_root = "#{Dir.pwd}/spec/support/api/schemas"

    def self.path_to_schema(schema_name)
      Pathname(schema_root).join("#{schema_name}.json")
    end
  end
end

if defined?(RSpec)
  require "json/matchers/rspec"
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
json-matchers-0.3.0 lib/json/matchers.rb
json-matchers-0.2.2 lib/json/matchers.rb
json-matchers-0.2.1 lib/json/matchers.rb
json-matchers-0.2.0 lib/json/matchers.rb
json-matchers-0.1.0 lib/json/matchers.rb