Sha256: f3b412113484525ffe40c55d3d874a7d9b270b3b8c593a726acd879f22a3fc4f

Contents?: true

Size: 178 Bytes

Versions: 6

Compression:

Stored size: 178 Bytes

Contents

require "membrane"

def expect_validation_failure(schema, object, regex)
  expect do
    schema.validate(object)
  end.to raise_error(Membrane::SchemaValidationError, regex)
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
membrane-1.1.0 spec/spec_helper.rb
membrane-1.0.0 spec/spec_helper.rb
membrane-0.0.5 spec/spec_helper.rb
membrane-0.0.4 spec/spec_helper.rb
membrane-0.0.2 spec/spec_helper.rb
membrane-0.0.1 spec/spec_helper.rb