Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
8 lines (6 sloc) 178 Bytes
require "membrane"
def expect_validation_failure(schema, object, regex)
expect do
schema.validate(object)
end.to raise_error(Membrane::SchemaValidationError, regex)
end