Sha256: fde5cffad522205ad62a0c7282a3410cd0712f775bed9fdc107b2d9cf5f2fe1c

Contents?: true

Size: 1.12 KB

Versions: 2

Compression:

Stored size: 1.12 KB

Contents

# ORIG_ARGV = ARGV.dup
#
# begin
#   old, $VERBOSE = $VERBOSE, nil
#   require File.expand_path('../../../load_paths', __FILE__)
# ensure
#   $VERBOSE = old
# end
#
# require 'active_support/core_ext/kernel/reporting'
# require 'active_support/core_ext/string/encoding'
#
# silence_warnings do
#   Encoding.default_internal = "UTF-8"
#   Encoding.default_external = "UTF-8"
# end
#
# require 'active_support/testing/autorun'
# require 'empty_bool'
#
# ENV['NO_RELOAD'] = '1'
# require 'active_support'
#
# Thread.abort_on_exception = true
#
# # Show backtraces for deprecated behavior for quicker cleanup.
# ActiveSupport::Deprecation.debug = true

require 'minitest/autorun'
require 'empty_bool'
require 'active_support'

class ActiveSupport::TestCase < Minitest::Test
  def self.test name, &block
    define_method "test_#{name.gsub(/[\W-]+/, '_')}", &block
  end

  def assert_raise error, &block
    block.call
    assert false, "Expected to see #{error.inspect}, but no exception was raised"
  rescue error
    # noop
  rescue => actual_error
    assert false, "Expected to see #{error.inspect}, but got #{actual_error.inspect}"
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
opal-activesupport-0.3.1 test/abstract_unit.rb
opal-activesupport-0.3.0 test/abstract_unit.rb