aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/test/cases/base_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activeresource/test/cases/base_test.rb')
-rw-r--r--activeresource/test/cases/base_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/activeresource/test/cases/base_test.rb b/activeresource/test/cases/base_test.rb
index 91349b810a..0f10a0e4d7 100644
--- a/activeresource/test/cases/base_test.rb
+++ b/activeresource/test/cases/base_test.rb
@@ -5,6 +5,7 @@ require "fixtures/street_address"
require "fixtures/beast"
require "fixtures/proxy"
require 'active_support/core_ext/hash/conversions'
+require 'mocha'
class BaseTest < Test::Unit::TestCase
def setup
@@ -98,10 +99,15 @@ class BaseTest < Test::Unit::TestCase
mock.get "/customers/1.xml", {}, @luis
end
+ @original_person_site = Person.site
Person.user = nil
Person.password = nil
end
+ def teardown
+ Person.site = @original_person_site
+ end
+
########################################################################
# Tests relating to setting up the API-connection configuration
########################################################################