aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2006-12-21 20:26:30 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2006-12-21 20:26:30 +0000
commit93c816f0c2ad45ef898de7c2dd2987f9ccb02678 (patch)
tree05b76bdaa6172648135c73eb4389ea2990ac82d3
parent01452feff1ab4e06ed41cd093bb8a140cd6b2cb6 (diff)
downloadrails-93c816f0c2ad45ef898de7c2dd2987f9ccb02678.tar.gz
rails-93c816f0c2ad45ef898de7c2dd2987f9ccb02678.tar.bz2
rails-93c816f0c2ad45ef898de7c2dd2987f9ccb02678.zip
move http_mock to lib so others can use it in their Ares tests
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5766 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r--activeresource/lib/active_resource/http_mock.rb (renamed from activeresource/test/http_mock.rb)0
-rw-r--r--activeresource/test/abstract_unit.rb9
2 files changed, 4 insertions, 5 deletions
diff --git a/activeresource/test/http_mock.rb b/activeresource/lib/active_resource/http_mock.rb
index e22a61e6a7..e22a61e6a7 100644
--- a/activeresource/test/http_mock.rb
+++ b/activeresource/lib/active_resource/http_mock.rb
diff --git a/activeresource/test/abstract_unit.rb b/activeresource/test/abstract_unit.rb
index 56a78405e3..f19635826c 100644
--- a/activeresource/test/abstract_unit.rb
+++ b/activeresource/test/abstract_unit.rb
@@ -1,9 +1,8 @@
-$:.unshift(File.dirname(__FILE__) + '/../lib')
-require 'active_resource'
require 'test/unit'
-require 'active_support/breakpoint'
-$:.unshift(File.dirname(__FILE__) + '/.')
-require 'http_mock'
+$:.unshift "#{File.dirname(__FILE__)}/../lib"
+require 'active_resource'
+require 'active_resource/http_mock'
+require 'active_support/breakpoint'
ActiveResource::Base.logger = Logger.new("#{File.dirname(__FILE__)}/debug.log")