Skip to content
Browse files

Fix failing spec

  • Loading branch information...
1 parent ad98f21 commit 6f247347a11c7f59c510dd3ff8ee94628bc1df8b Yehuda Katz committed Feb 8, 2010
Showing with 7 additions and 1 deletion.
  1. +5 −0 activeresource/test/cases/base_test.rb
  2. +2 −1 activeresource/test/cases/subscriber_test.rb
View
5 activeresource/test/cases/base_test.rb
@@ -99,10 +99,15 @@ def setup
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
########################################################################
View
3 activeresource/test/cases/subscriber_test.rb
@@ -2,6 +2,7 @@
require "fixtures/person"
require "rails/subscriber/test_helper"
require "active_resource/railties/subscriber"
+require "active_support/core_ext/hash/conversions"
class SubscriberTest < ActiveSupport::TestCase
include Rails::Subscriber::TestHelper
@@ -24,7 +25,7 @@ def test_request_notification
matz = Person.find(1)
wait
assert_equal 2, @logger.logged(:info).size
- assert_equal "GET http://somewhere.else:80/people/1.xml", @logger.logged(:info)[0]
+ assert_equal "GET http://37s.sunrise.i:3000/people/1.xml", @logger.logged(:info)[0]
assert_match /\-\-\> 200 200 106/, @logger.logged(:info)[1]
end
end

0 comments on commit 6f24734

Please sign in to comment.
Something went wrong with that request. Please try again.