Sha256: fe7140c91ab389b5a849978af55ba85235159343aabe8326a0831d2df8242b17

Contents?: true

Size: 180 Bytes

Versions: 17

Compression:

Stored size: 180 Bytes

Contents

require "rspec/expectations"
require "json-schema"

RSpec::Matchers.define :match_schema do |expected|
  match do |actual|
    JSON::Validator.validate(expected, actual)
  end
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
rambo_ruby-0.7.1 lib/rambo/rspec/templates/matcher_file_template.erb
rambo_ruby-0.7.0 lib/rambo/rspec/templates/matcher_file_template.erb
rambo_ruby-0.6.0 lib/rambo/rspec/templates/matcher_file_template.erb
rambo_ruby-0.5.0 lib/rambo/rspec/templates/matcher_file_template.erb
rambo_ruby-0.4.0 lib/rambo/rspec/templates/matcher_file_template.erb
rambo_ruby-0.3.3 lib/rambo/rspec/templates/matcher_file_template.erb
rambo_ruby-0.3.2 lib/rambo/rspec/templates/matcher_file_template.erb
rambo_ruby-0.3.1 lib/rambo/rspec/templates/matcher_file_template.erb
rambo_ruby-0.3.0 lib/rambo/rspec/templates/matcher_file_template.erb
rambo_ruby-0.2.3 lib/rambo/rspec/templates/matcher_file_template.erb
rambo_ruby-0.2.2 lib/rambo/rspec/templates/matcher_file_template.erb
rambo_ruby-0.2.1 lib/rambo/rspec/templates/matcher_file_template.erb
rambo_ruby-0.2.0 lib/rambo/rspec/templates/matcher_file_template.erb
rambo_ruby-0.1.0 lib/rspec/templates/matcher_file_template.erb
json_test_data-0.9.0 spec/matchers/json_schema_matchers.rb
json_test_data-0.8.0 spec/matchers/json_schema_matchers.rb
json_test_data-0.7.0 spec/matchers/json_schema_matchers.rb