Sha256: e46114adebb41f283f495abcf21181aaae9de03b0606bd4bbc6bf40db27d543e
Contents?: true
Size: 1.5 KB
Versions: 1
Compression:
Stored size: 1.5 KB
Contents
# -*- coding: utf-8 -*- # # Copyright (C) 2012-2015 Kouhei Sutou <kou@clear-code.com> # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA require "test-unit" require "active_support/testing/assertions" $LOADED_FEATURES.size.times do |i| feature = $LOADED_FEATURES[i] if feature.end_with?("active_support/testing/assertions.rb") as_test_case_feature = feature.gsub(/testing\/assertions.rb\z/, "test_case.rb") $LOADED_FEATURES[i, 0] = as_test_case_feature break elsif feature.end_with?("active_support/test_case.rb") break end end module ActiveSupport if const_defined?(:TestCase) remove_const :TestCase end class TestCase < ::Test::Unit::TestCase include ActiveSupport::Testing::Assertions private def mu_pp(object) AssertionMessage.convert(object) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
test-unit-activesupport-1.0.4 | lib/test/unit/active_support.rb |