mirror of https://github.com/rails/rails
require abstract_unit directly since test is in load path
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8563 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
b144818698
commit
f6d8526659
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '/abstract_unit'
|
||||
require 'abstract_unit'
|
||||
require 'stringio'
|
||||
|
||||
class BufferedLoggerTest < Test::Unit::TestCase
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '/abstract_unit'
|
||||
require 'abstract_unit'
|
||||
|
||||
class CacheStoreSettingTest < Test::Unit::TestCase
|
||||
def test_file_fragment_cache_store
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '/abstract_unit'
|
||||
require 'abstract_unit'
|
||||
require 'stringio'
|
||||
|
||||
class CleanLoggerTest < Test::Unit::TestCase
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '/../abstract_unit'
|
||||
require 'abstract_unit'
|
||||
require 'bigdecimal'
|
||||
|
||||
class ArrayExtAccessTests < Test::Unit::TestCase
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '/../abstract_unit'
|
||||
require 'abstract_unit'
|
||||
|
||||
class EmptyTrue
|
||||
def empty?() true; end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '/../abstract_unit'
|
||||
require 'abstract_unit'
|
||||
|
||||
class EscapeSkippingSlashesTest < Test::Unit::TestCase
|
||||
def test_array
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '/../../abstract_unit'
|
||||
require 'abstract_unit'
|
||||
|
||||
class ClassAttributeAccessorTest < Test::Unit::TestCase
|
||||
def setup
|
||||
|
@ -28,4 +28,4 @@ class ClassAttributeAccessorTest < Test::Unit::TestCase
|
|||
assert @object.respond_to?(:bar)
|
||||
assert !@object.respond_to?(:bar=)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '/../../abstract_unit'
|
||||
require 'abstract_unit'
|
||||
|
||||
class ClassInheritableAttributesTest < Test::Unit::TestCase
|
||||
def setup
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '/../../abstract_unit'
|
||||
require 'abstract_unit'
|
||||
|
||||
module DelegatingFixtures
|
||||
class Parent
|
||||
|
@ -102,4 +102,4 @@ class DelegatingAttributesTest < Test::Unit::TestCase
|
|||
assert_nil Mokopuna.some_attribute
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '/../abstract_unit'
|
||||
require 'abstract_unit'
|
||||
|
||||
class A
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '/../abstract_unit'
|
||||
require 'abstract_unit'
|
||||
|
||||
class DateExtCalculationsTest < Test::Unit::TestCase
|
||||
def test_to_s
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '/../abstract_unit'
|
||||
require 'abstract_unit'
|
||||
|
||||
class DateTimeExtCalculationsTest < Test::Unit::TestCase
|
||||
def test_to_s
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '/../abstract_unit'
|
||||
require 'abstract_unit'
|
||||
|
||||
class DuplicableTest < Test::Unit::TestCase
|
||||
NO = [nil, false, true, :symbol, 1, 2.3, BigDecimal.new('4.56')]
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '/../abstract_unit'
|
||||
require 'abstract_unit'
|
||||
|
||||
class DurationTest < Test::Unit::TestCase
|
||||
def test_inspect
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '/../abstract_unit'
|
||||
require 'abstract_unit'
|
||||
|
||||
Payment = Struct.new(:price)
|
||||
class SummablePayment < Payment
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '/../abstract_unit'
|
||||
require 'abstract_unit'
|
||||
|
||||
class ExceptionExtTests < Test::Unit::TestCase
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '/../abstract_unit'
|
||||
require 'abstract_unit'
|
||||
|
||||
class AtomicWriteTest < Test::Unit::TestCase
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '/../abstract_unit'
|
||||
require 'abstract_unit'
|
||||
|
||||
class FloatExtRoundingTests < Test::Unit::TestCase
|
||||
def test_round_for_positive_number
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '/../abstract_unit'
|
||||
require 'abstract_unit'
|
||||
|
||||
class HashExtTest < Test::Unit::TestCase
|
||||
def setup
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '/../abstract_unit'
|
||||
require 'abstract_unit'
|
||||
|
||||
class IntegerExtTest < Test::Unit::TestCase
|
||||
def test_even
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '/../abstract_unit'
|
||||
require 'abstract_unit'
|
||||
|
||||
class KernelTest < Test::Unit::TestCase
|
||||
def test_silence_warnings
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '/../../abstract_unit'
|
||||
require 'abstract_unit'
|
||||
|
||||
class AttrAccessorWithDefaultTest < Test::Unit::TestCase
|
||||
def setup
|
||||
|
@ -27,4 +27,4 @@ class AttrAccessorWithDefaultTest < Test::Unit::TestCase
|
|||
def test_invalid_args
|
||||
assert_raise(RuntimeError) {@target.attr_accessor_with_default :foo}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '/../../abstract_unit'
|
||||
require 'abstract_unit'
|
||||
|
||||
class AttrInternalTest < Test::Unit::TestCase
|
||||
def setup
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '/../../abstract_unit'
|
||||
require 'abstract_unit'
|
||||
|
||||
class ModuleAttributeAccessorTest < Test::Unit::TestCase
|
||||
def setup
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '/../../abstract_unit'
|
||||
require 'abstract_unit'
|
||||
|
||||
module AttributeAliasing
|
||||
class Content
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '/../abstract_unit'
|
||||
require 'abstract_unit'
|
||||
|
||||
module One
|
||||
Constant1 = "Hello World"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '/../abstract_unit'
|
||||
require 'abstract_unit'
|
||||
|
||||
class NameErrorTest < Test::Unit::TestCase
|
||||
def test_name_error_should_set_missing_name
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '/../abstract_unit'
|
||||
require 'abstract_unit'
|
||||
|
||||
class NumericExtTimeAndDateTimeTest < Test::Unit::TestCase
|
||||
def setup
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '/../abstract_unit'
|
||||
require 'abstract_unit'
|
||||
|
||||
class ClassA; end
|
||||
class ClassB < ClassA; end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '/../abstract_unit'
|
||||
require 'abstract_unit'
|
||||
|
||||
class TestPathname < Test::Unit::TestCase
|
||||
def test_clean_within
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '/../abstract_unit'
|
||||
require 'abstract_unit'
|
||||
|
||||
class ProcTests < Test::Unit::TestCase
|
||||
def test_bind_returns_method_with_changed_self
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '/../abstract_unit'
|
||||
require 'abstract_unit'
|
||||
|
||||
class RangeTest < Test::Unit::TestCase
|
||||
def test_to_s_from_dates
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
require 'date'
|
||||
require File.dirname(__FILE__) + '/../abstract_unit'
|
||||
require 'abstract_unit'
|
||||
require 'inflector_test_cases'
|
||||
|
||||
class StringInflectionsTest < Test::Unit::TestCase
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '/../abstract_unit'
|
||||
require 'abstract_unit'
|
||||
|
||||
class SymbolTests < Test::Unit::TestCase
|
||||
def test_to_proc
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '/../abstract_unit'
|
||||
require 'abstract_unit'
|
||||
|
||||
class TimeExtCalculationsTest < Test::Unit::TestCase
|
||||
def test_seconds_since_midnight
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '/abstract_unit'
|
||||
require 'abstract_unit'
|
||||
require 'pp'
|
||||
|
||||
module ModuleWithMissing
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '/abstract_unit'
|
||||
require 'abstract_unit'
|
||||
|
||||
class Deprecatee
|
||||
def initialize
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '/abstract_unit'
|
||||
require 'abstract_unit'
|
||||
require 'inflector_test_cases'
|
||||
|
||||
module Ace
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '/../abstract_unit'
|
||||
require 'abstract_unit'
|
||||
|
||||
class TestJSONDecoding < Test::Unit::TestCase
|
||||
TESTS = {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '/../abstract_unit'
|
||||
require 'abstract_unit'
|
||||
|
||||
class TestJSONEncoding < Test::Unit::TestCase
|
||||
class Foo
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '/abstract_unit'
|
||||
require 'abstract_unit'
|
||||
|
||||
class OptionMergerTest < Test::Unit::TestCase
|
||||
def setup
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '/abstract_unit'
|
||||
require 'abstract_unit'
|
||||
|
||||
class OrderedHashTest < Test::Unit::TestCase
|
||||
def setup
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
require File.dirname(__FILE__) + '/abstract_unit'
|
||||
require 'abstract_unit'
|
||||
require 'active_support/test_case'
|
||||
|
||||
class AssertDifferenceTest < Test::Unit::TestCase
|
||||
def setup
|
||||
@object = Class.new do
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '/abstract_unit'
|
||||
require 'abstract_unit'
|
||||
|
||||
class TimeZoneTest < Test::Unit::TestCase
|
||||
class MockTime
|
||||
|
|
|
@ -6,7 +6,7 @@ module ActiveRecord
|
|||
end
|
||||
end
|
||||
|
||||
require File.dirname(__FILE__) + '/abstract_unit'
|
||||
require 'abstract_unit'
|
||||
require 'active_support/whiny_nil'
|
||||
|
||||
class WhinyNilTest < Test::Unit::TestCase
|
||||
|
|
Loading…
Reference in New Issue