Sha256: 366065bfa6ab0bac0c54ac6187f5fb345b18d4637537e1f5c859c4a452ee7175

Contents?: true

Size: 465 Bytes

Versions: 4

Compression:

Stored size: 465 Bytes

Contents

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

require 'mime/type'
require 'fileutils'

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

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

4 entries across 3 versions & 3 rubygems

Version Path
vagrant-unbundled-1.8.1.1 vendor/bundle/ruby/2.3.0/gems/mime-types-2.99/test/minitest_helper.rb
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/mime-types-2.99/test/minitest_helper.rb
tdiary-4.2.1 vendor/bundle/ruby/2.3.0/gems/mime-types-2.99/test/minitest_helper.rb
mime-types-2.99 test/minitest_helper.rb