Sha256: dcdf1ec4416e7c95fb3a2019f7df1dd3e27564528e8861e130be30d582a99e06

Contents?: true

Size: 296 Bytes

Versions: 1

Compression:

Stored size: 296 Bytes

Contents

require 'rubygems'
require 'test/unit'
require 'shoulda'

require 'dalli'

class Test::Unit::TestCase
  def assert_error(error, regexp=nil, &block)
    ex = assert_raise(error, &block)
    assert_match(regexp, ex.message, "#{ex.class.name}: #{ex.message}\n#{ex.backtrace.join("\n\t")}")
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dalli-0.9.0 test/helper.rb