Test::Schema exceptions should be Minitest::Assertions

This commit is contained in:
Benjamin Fleischer
2016-04-20 09:13:27 -05:00
parent 070d58eacf
commit d0d7af470c
2 changed files with 4 additions and 4 deletions

View File

@@ -14,8 +14,8 @@ module ActiveModelSerializers
assert(matcher.call, matcher.message)
end
MissingSchema = Class.new(Errno::ENOENT)
InvalidSchemaError = Class.new(StandardError)
MissingSchema = Class.new(Minitest::Assertion)
InvalidSchemaError = Class.new(Minitest::Assertion)
class AssertResponseSchema
attr_reader :schema_path, :response, :message