Sha256: 38ea71a2cf488f0c5c1be9622804727ab6f0d895c7ebd9700e88d9546c6a15ac
Contents?: true
Size: 522 Bytes
Versions: 4
Compression:
Stored size: 522 Bytes
Contents
# frozen_string_literal: true module MediaTypes module Testing module Assertions def assert_media_type_format(media_type, output, **opts) return pass unless media_type.validatable? assert media_type.validate!(output, **opts) end def assert_mediatype(mediatype) mediatype.assert_sane! assert mediatype.media_type_validations.scheme.asserted_sane? rescue MediaTypes::AssertionError => e flunk e.message end end end end
Version data entries
4 entries across 4 versions & 1 rubygems