Sha256: a376513b635eff2d787e349f726c5c623236920112365658448f096422b8924c
Contents?: true
Size: 330 Bytes
Versions: 1
Compression:
Stored size: 330 Bytes
Contents
# frozen_string_literal: true require "json-schema" RSpec::Matchers.define :match_response_schema do |schema| match do |response| schema_directory = "#{Dir.pwd}/spec/fixtures/schemas" schema_path = "#{schema_directory}/#{schema}.json" JSON::Validator.validate!(schema_path, response.body, strict: true) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
archangel-0.4.0 | spec/support/matchers/match_response_schema.rb |