Browse files

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
  • Loading branch information...
1 parent b144818 commit f6d852665987142fb85ab26da9cc01f5d9b65d46 @jeremy jeremy committed Jan 5, 2008
Showing with 49 additions and 48 deletions.
  1. +1 −1 activesupport/test/buffered_logger_test.rb
  2. +1 −1 activesupport/test/caching_test.rb
  3. +1 −1 activesupport/test/clean_logger_test.rb
  4. +1 −1 activesupport/test/core_ext/array_ext_test.rb
  5. +1 −1 activesupport/test/core_ext/blank_test.rb
  6. +1 −1 activesupport/test/core_ext/cgi_ext_test.rb
  7. +2 −2 activesupport/test/core_ext/class/attribute_accessor_test.rb
  8. +1 −1 activesupport/test/core_ext/class/class_inheritable_attributes_test.rb
  9. +2 −2 activesupport/test/core_ext/class/delegating_attributes_test.rb
  10. +1 −1 activesupport/test/core_ext/class_test.rb
  11. +1 −1 activesupport/test/core_ext/date_ext_test.rb
  12. +1 −1 activesupport/test/core_ext/date_time_ext_test.rb
  13. +1 −1 activesupport/test/core_ext/duplicable_test.rb
  14. +1 −1 activesupport/test/core_ext/duration_test.rb
  15. +1 −1 activesupport/test/core_ext/enumerable_test.rb
  16. +1 −1 activesupport/test/core_ext/exception_test.rb
  17. +1 −1 activesupport/test/core_ext/file_test.rb
  18. +1 −1 activesupport/test/core_ext/float_ext_test.rb
  19. +1 −1 activesupport/test/core_ext/hash_ext_test.rb
  20. +1 −1 activesupport/test/core_ext/integer_ext_test.rb
  21. +1 −1 activesupport/test/core_ext/kernel_test.rb
  22. +2 −2 activesupport/test/core_ext/module/attr_accessor_with_default_test.rb
  23. +1 −1 activesupport/test/core_ext/module/attr_internal_test.rb
  24. +1 −1 activesupport/test/core_ext/module/attribute_accessor_test.rb
  25. +1 −1 activesupport/test/core_ext/module/attribute_aliasing_test.rb
  26. +1 −1 activesupport/test/core_ext/module_test.rb
  27. +1 −1 activesupport/test/core_ext/name_error_test.rb
  28. +1 −1 activesupport/test/core_ext/numeric_ext_test.rb
  29. +1 −1 activesupport/test/core_ext/object_and_class_ext_test.rb
  30. +1 −1 activesupport/test/core_ext/pathname_test.rb
  31. +1 −1 activesupport/test/core_ext/proc_test.rb
  32. +1 −1 activesupport/test/core_ext/range_ext_test.rb
  33. +1 −1 activesupport/test/core_ext/string_ext_test.rb
  34. +1 −1 activesupport/test/core_ext/symbol_test.rb
  35. +1 −1 activesupport/test/core_ext/time_ext_test.rb
  36. +1 −1 activesupport/test/dependencies_test.rb
  37. +1 −1 activesupport/test/deprecation_test.rb
  38. +1 −1 activesupport/test/inflector_test.rb
  39. +1 −1 activesupport/test/json/decoding_test.rb
  40. +1 −1 activesupport/test/json/encoding_test.rb
  41. +1 −1 activesupport/test/option_merger_test.rb
  42. +1 −1 activesupport/test/ordered_options_test.rb
  43. +2 −1 activesupport/test/test_test.rb
  44. +1 −1 activesupport/test/time_zone_test.rb
  45. +1 −1 activesupport/test/whiny_nil_test.rb
View
2 activesupport/test/buffered_logger_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/abstract_unit'
+require 'abstract_unit'
require 'stringio'
class BufferedLoggerTest < Test::Unit::TestCase
View
2 activesupport/test/caching_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/abstract_unit'
+require 'abstract_unit'
class CacheStoreSettingTest < Test::Unit::TestCase
def test_file_fragment_cache_store
View
2 activesupport/test/clean_logger_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/abstract_unit'
+require 'abstract_unit'
require 'stringio'
class CleanLoggerTest < Test::Unit::TestCase
View
2 activesupport/test/core_ext/array_ext_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../abstract_unit'
+require 'abstract_unit'
require 'bigdecimal'
class ArrayExtAccessTests < Test::Unit::TestCase
View
2 activesupport/test/core_ext/blank_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../abstract_unit'
+require 'abstract_unit'
class EmptyTrue
def empty?() true; end
View
2 activesupport/test/core_ext/cgi_ext_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../abstract_unit'
+require 'abstract_unit'
class EscapeSkippingSlashesTest < Test::Unit::TestCase
def test_array
View
4 activesupport/test/core_ext/class/attribute_accessor_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../abstract_unit'
+require 'abstract_unit'
class ClassAttributeAccessorTest < Test::Unit::TestCase
def setup
@@ -28,4 +28,4 @@ def test_should_not_create_instance_writer
assert @object.respond_to?(:bar)
assert !@object.respond_to?(:bar=)
end
-end
+end
View
2 activesupport/test/core_ext/class/class_inheritable_attributes_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../abstract_unit'
+require 'abstract_unit'
class ClassInheritableAttributesTest < Test::Unit::TestCase
def setup
View
4 activesupport/test/core_ext/class/delegating_attributes_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../abstract_unit'
+require 'abstract_unit'
module DelegatingFixtures
class Parent
@@ -102,4 +102,4 @@ def test_delegation_stops_for_nil
assert_nil Mokopuna.some_attribute
end
-end
+end
View
2 activesupport/test/core_ext/class_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../abstract_unit'
+require 'abstract_unit'
class A
end
View
2 activesupport/test/core_ext/date_ext_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../abstract_unit'
+require 'abstract_unit'
class DateExtCalculationsTest < Test::Unit::TestCase
def test_to_s
View
2 activesupport/test/core_ext/date_time_ext_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../abstract_unit'
+require 'abstract_unit'
class DateTimeExtCalculationsTest < Test::Unit::TestCase
def test_to_s
View
2 activesupport/test/core_ext/duplicable_test.rb
@@ -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')]
View
2 activesupport/test/core_ext/duration_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../abstract_unit'
+require 'abstract_unit'
class DurationTest < Test::Unit::TestCase
def test_inspect
View
2 activesupport/test/core_ext/enumerable_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../abstract_unit'
+require 'abstract_unit'
Payment = Struct.new(:price)
class SummablePayment < Payment
View
2 activesupport/test/core_ext/exception_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../abstract_unit'
+require 'abstract_unit'
class ExceptionExtTests < Test::Unit::TestCase
View
2 activesupport/test/core_ext/file_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../abstract_unit'
+require 'abstract_unit'
class AtomicWriteTest < Test::Unit::TestCase
View
2 activesupport/test/core_ext/float_ext_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../abstract_unit'
+require 'abstract_unit'
class FloatExtRoundingTests < Test::Unit::TestCase
def test_round_for_positive_number
View
2 activesupport/test/core_ext/hash_ext_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../abstract_unit'
+require 'abstract_unit'
class HashExtTest < Test::Unit::TestCase
def setup
View
2 activesupport/test/core_ext/integer_ext_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../abstract_unit'
+require 'abstract_unit'
class IntegerExtTest < Test::Unit::TestCase
def test_even
View
2 activesupport/test/core_ext/kernel_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../abstract_unit'
+require 'abstract_unit'
class KernelTest < Test::Unit::TestCase
def test_silence_warnings
View
4 activesupport/test/core_ext/module/attr_accessor_with_default_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../abstract_unit'
+require 'abstract_unit'
class AttrAccessorWithDefaultTest < Test::Unit::TestCase
def setup
@@ -27,4 +27,4 @@ def test_default_proc
def test_invalid_args
assert_raise(RuntimeError) {@target.attr_accessor_with_default :foo}
end
-end
+end
View
2 activesupport/test/core_ext/module/attr_internal_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../abstract_unit'
+require 'abstract_unit'
class AttrInternalTest < Test::Unit::TestCase
def setup
View
2 activesupport/test/core_ext/module/attribute_accessor_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../abstract_unit'
+require 'abstract_unit'
class ModuleAttributeAccessorTest < Test::Unit::TestCase
def setup
View
2 activesupport/test/core_ext/module/attribute_aliasing_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../abstract_unit'
+require 'abstract_unit'
module AttributeAliasing
class Content
View
2 activesupport/test/core_ext/module_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../abstract_unit'
+require 'abstract_unit'
module One
Constant1 = "Hello World"
View
2 activesupport/test/core_ext/name_error_test.rb
@@ -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
View
2 activesupport/test/core_ext/numeric_ext_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../abstract_unit'
+require 'abstract_unit'
class NumericExtTimeAndDateTimeTest < Test::Unit::TestCase
def setup
View
2 activesupport/test/core_ext/object_and_class_ext_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../abstract_unit'
+require 'abstract_unit'
class ClassA; end
class ClassB < ClassA; end
View
2 activesupport/test/core_ext/pathname_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../abstract_unit'
+require 'abstract_unit'
class TestPathname < Test::Unit::TestCase
def test_clean_within
View
2 activesupport/test/core_ext/proc_test.rb
@@ -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
View
2 activesupport/test/core_ext/range_ext_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../abstract_unit'
+require 'abstract_unit'
class RangeTest < Test::Unit::TestCase
def test_to_s_from_dates
View
2 activesupport/test/core_ext/string_ext_test.rb
@@ -1,5 +1,5 @@
require 'date'
-require File.dirname(__FILE__) + '/../abstract_unit'
+require 'abstract_unit'
require 'inflector_test_cases'
class StringInflectionsTest < Test::Unit::TestCase
View
2 activesupport/test/core_ext/symbol_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../abstract_unit'
+require 'abstract_unit'
class SymbolTests < Test::Unit::TestCase
def test_to_proc
View
2 activesupport/test/core_ext/time_ext_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../abstract_unit'
+require 'abstract_unit'
class TimeExtCalculationsTest < Test::Unit::TestCase
def test_seconds_since_midnight
View
2 activesupport/test/dependencies_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/abstract_unit'
+require 'abstract_unit'
require 'pp'
module ModuleWithMissing
View
2 activesupport/test/deprecation_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/abstract_unit'
+require 'abstract_unit'
class Deprecatee
def initialize
View
2 activesupport/test/inflector_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/abstract_unit'
+require 'abstract_unit'
require 'inflector_test_cases'
module Ace
View
2 activesupport/test/json/decoding_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../abstract_unit'
+require 'abstract_unit'
class TestJSONDecoding < Test::Unit::TestCase
TESTS = {
View
2 activesupport/test/json/encoding_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../abstract_unit'
+require 'abstract_unit'
class TestJSONEncoding < Test::Unit::TestCase
class Foo
View
2 activesupport/test/option_merger_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/abstract_unit'
+require 'abstract_unit'
class OptionMergerTest < Test::Unit::TestCase
def setup
View
2 activesupport/test/ordered_options_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/abstract_unit'
+require 'abstract_unit'
class OrderedHashTest < Test::Unit::TestCase
def setup
View
3 activesupport/test/test_test.rb
@@ -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
View
2 activesupport/test/time_zone_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/abstract_unit'
+require 'abstract_unit'
class TimeZoneTest < Test::Unit::TestCase
class MockTime
View
2 activesupport/test/whiny_nil_test.rb
@@ -6,7 +6,7 @@ def save!
end
end
-require File.dirname(__FILE__) + '/abstract_unit'
+require 'abstract_unit'
require 'active_support/whiny_nil'
class WhinyNilTest < Test::Unit::TestCase

0 comments on commit f6d8526

Please sign in to comment.