Sha256: 3412634d6f9717e7118b6f3dcc5add32bb2e5f7db1a0d3cd229428246db60477
Contents?: true
Size: 492 Bytes
Versions: 1
Compression:
Stored size: 492 Bytes
Contents
def errors_for(validator,annotations) c = validator.new([],{}) stub(c).annotations{ annotations } c.run end RSpec::Matchers.define :return_no_errors_for do |annotations| match do @actual = errors_for(actual,annotations) @expected = [] actual == expected end diffable end RSpec::Matchers.define :return_errors_for do |annotations,errors| match do @actual = errors_for(actual,annotations) @expected = errors actual == expected end diffable end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
genomer-plugin-validate-0.0.1 | spec/validator_run_matcher.rb |