From 1f2e9bb280a761132495ea430303767a08700fed Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Sat, 5 Jan 2008 13:32:38 +0000 Subject: require abstract_unit directly since test is in load path git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8566 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activeresource/test/authorization_test.rb | 2 +- activeresource/test/base/custom_methods_test.rb | 6 +++--- activeresource/test/base/equality_test.rb | 2 +- activeresource/test/base/load_test.rb | 2 +- activeresource/test/base_errors_test.rb | 2 +- activeresource/test/base_test.rb | 2 +- activeresource/test/connection_test.rb | 2 +- activeresource/test/format_test.rb | 4 ++-- 8 files changed, 11 insertions(+), 11 deletions(-) (limited to 'activeresource') diff --git a/activeresource/test/authorization_test.rb b/activeresource/test/authorization_test.rb index aed2e0e64b..fabf4a42c2 100644 --- a/activeresource/test/authorization_test.rb +++ b/activeresource/test/authorization_test.rb @@ -1,4 +1,4 @@ -require "#{File.dirname(__FILE__)}/abstract_unit" +require 'abstract_unit' class AuthorizationTest < Test::Unit::TestCase Response = Struct.new(:code) diff --git a/activeresource/test/base/custom_methods_test.rb b/activeresource/test/base/custom_methods_test.rb index 9864e9876f..c6dda524fe 100644 --- a/activeresource/test/base/custom_methods_test.rb +++ b/activeresource/test/base/custom_methods_test.rb @@ -1,6 +1,6 @@ -require "#{File.dirname(__FILE__)}/../abstract_unit" -require "#{File.dirname(__FILE__)}/../fixtures/person" -require "#{File.dirname(__FILE__)}/../fixtures/street_address" +require 'abstract_unit' +require 'fixtures/person' +require 'fixtures/street_address' class CustomMethodsTest < Test::Unit::TestCase def setup diff --git a/activeresource/test/base/equality_test.rb b/activeresource/test/base/equality_test.rb index 4a3f75f998..1fb8938e95 100644 --- a/activeresource/test/base/equality_test.rb +++ b/activeresource/test/base/equality_test.rb @@ -1,4 +1,4 @@ -require "#{File.dirname(__FILE__)}/../abstract_unit" +require 'abstract_unit' require "fixtures/person" require "fixtures/street_address" diff --git a/activeresource/test/base/load_test.rb b/activeresource/test/base/load_test.rb index 944f337aed..737afb1748 100644 --- a/activeresource/test/base/load_test.rb +++ b/activeresource/test/base/load_test.rb @@ -1,4 +1,4 @@ -require "#{File.dirname(__FILE__)}/../abstract_unit" +require 'abstract_unit' require "fixtures/person" require "fixtures/street_address" diff --git a/activeresource/test/base_errors_test.rb b/activeresource/test/base_errors_test.rb index 8706326b13..7ae92c7d98 100644 --- a/activeresource/test/base_errors_test.rb +++ b/activeresource/test/base_errors_test.rb @@ -1,4 +1,4 @@ -require "#{File.dirname(__FILE__)}/abstract_unit" +require 'abstract_unit' require "fixtures/person" class BaseErrorsTest < Test::Unit::TestCase diff --git a/activeresource/test/base_test.rb b/activeresource/test/base_test.rb index 89bc28deda..3808209f79 100644 --- a/activeresource/test/base_test.rb +++ b/activeresource/test/base_test.rb @@ -1,4 +1,4 @@ -require "#{File.dirname(__FILE__)}/abstract_unit" +require 'abstract_unit' require "fixtures/person" require "fixtures/street_address" require "fixtures/beast" diff --git a/activeresource/test/connection_test.rb b/activeresource/test/connection_test.rb index 307d3a94d5..8ffc4dfbb2 100644 --- a/activeresource/test/connection_test.rb +++ b/activeresource/test/connection_test.rb @@ -1,4 +1,4 @@ -require "#{File.dirname(__FILE__)}/abstract_unit" +require 'abstract_unit' class ConnectionTest < Test::Unit::TestCase ResponseCodeStub = Struct.new(:code) diff --git a/activeresource/test/format_test.rb b/activeresource/test/format_test.rb index 51e1bbe32a..3c81803fce 100644 --- a/activeresource/test/format_test.rb +++ b/activeresource/test/format_test.rb @@ -1,4 +1,4 @@ -require "#{File.dirname(__FILE__)}/abstract_unit" +require 'abstract_unit' require "fixtures/person" class FormatTest < Test::Unit::TestCase @@ -80,4 +80,4 @@ class FormatTest < Test::Unit::TestCase ensure klass.format = previous_format end -end \ No newline at end of file +end -- cgit v1.2.3