Sha256: da4469027f7b123768e4cc3fb56db9d24d4ac575ca87dad1bf26dc9fd97ffbaf

Contents?: true

Size: 266 Bytes

Versions: 2

Compression:

Stored size: 266 Bytes

Contents

require 'bundler'
Bundler.setup

require 'rspec'
require 'jschematic'

RSpec::Matchers.define :accept do |instance_value|
  match do |validator|
    begin
      validator.accepts?(instance_value)
    rescue Jschematic::ValidationError
      false
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jschematic-0.0.2 spec/spec_helper.rb
jschematic-0.0.1 spec/spec_helper.rb