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