Sha256: b1673615a33422b6041c4d19af5c12ae6e268d532b54d6a2255d2c458f1563a0

Contents?: true

Size: 443 Bytes

Versions: 21

Compression:

Stored size: 443 Bytes

Contents

# -*- ruby encoding: utf-8 -*-

require 'mime/type'
require 'fileutils'

gem 'minitest'
require 'fivemat/minitest/autorun'
require 'minitest/focus'

module Minitest::MIMEDeprecated
  def assert_deprecated name, message = 'and will be removed'
    name = Regexp.escape(name)
    message = Regexp.escape(message)

    assert_output nil, /#{name} is deprecated #{message}./ do
      yield
    end
  end

  Minitest::Test.send(:include, self)
end

Version data entries

21 entries across 20 versions & 5 rubygems

Version Path
mime-types-2.99.1 test/minitest_helper.rb