Sha256: ee794edb01c60caf86a099f7b195ba177b70765c7170318d6232103e44c73c3a

Contents?: true

Size: 257 Bytes

Versions: 14

Compression:

Stored size: 257 Bytes

Contents

# frozen_string_literal: true

module MediaTypes
  module Assertions
    def assert_media_type_format(media_type, output, **opts)
      return pass unless media_type.validatable?
      assert media_type.validate!(output, **opts)
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
media_types-2.0.1 lib/media_types/minitest/assert_media_type_format.rb
media_types-2.0.0 lib/media_types/minitest/assert_media_type_format.rb
media_types-1.0.0 lib/media_types/minitest/assert_media_type_format.rb
media_types-0.6.2 lib/media_types/minitest/assert_media_type_format.rb
media_types-0.6.1 lib/media_types/minitest/assert_media_type_format.rb
media_types-0.6.0 lib/media_types/minitest/assert_media_type_format.rb
media_types-0.5.5 lib/media_types/minitest/assert_media_type_format.rb
media_types-0.5.4 lib/media_types/minitest/assert_media_type_format.rb
media_types-0.5.3 lib/media_types/minitest/assert_media_type_format.rb
media_types-0.5.2 lib/media_types/minitest/assert_media_type_format.rb
media_types-0.5.1 lib/media_types/minitest/assert_media_type_format.rb
media_types-0.5.0 lib/media_types/minitest/assert_media_type_format.rb
media_types-0.4.1 lib/media_types/minitest/assert_media_type_format.rb
media_types-0.4.0 lib/media_types/minitest/assert_media_type_format.rb