Sha256: a3d9f0630db22fa25d8c99d63e3596211c1a4a299f4a7a4af3da6e4b35df99b4

Contents?: true

Size: 840 Bytes

Versions: 1

Compression:

Stored size: 840 Bytes

Contents

require 'minitest/assertions'

module Minitest
  module Assertions

    # test/unit backwards compatibility methods
    alias :assert_raise :assert_raises
    alias :assert_not_empty :refute_empty
    alias :assert_not_equal :refute_equal
    alias :assert_not_in_delta :refute_in_delta
    alias :assert_not_in_epsilon :refute_in_epsilon
    alias :assert_not_includes :refute_includes
    alias :assert_not_instance_of :refute_instance_of
    alias :assert_not_kind_of :refute_kind_of
    alias :assert_no_match :refute_match
    alias :assert_not_nil :refute_nil
    alias :assert_not_operator :refute_operator
    alias :assert_not_predicate :refute_predicate
    alias :assert_not_respond_to :refute_respond_to
    alias :assert_not_same :refute_same

  def assert_nothing_raised(*)
    yield
  end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ae_declarative_authorization-0.7.1 test/test_support/minitest_compatibility.rb