From 55d4dbb8df9b4e6e46d461352f97e35ba69b417e Mon Sep 17 00:00:00 2001 From: Rick Olson Date: Tue, 12 Dec 2006 15:29:54 +0000 Subject: Fix issues with ActiveResource collection handling. Closes #6291. [bmilekic] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5714 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activeresource/test/authorization_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activeresource/test/authorization_test.rb') diff --git a/activeresource/test/authorization_test.rb b/activeresource/test/authorization_test.rb index bfe51ce1e3..1a1a681a59 100644 --- a/activeresource/test/authorization_test.rb +++ b/activeresource/test/authorization_test.rb @@ -10,7 +10,7 @@ class AuthorizationTest < Test::Unit::TestCase @david = { :id => 2, :name => 'David' }.to_xml(:root => 'person') @authenticated_conn = ActiveResource::Connection.new("http://david:test123@localhost") @authorization_request_header = { 'Authorization' => 'Basic ZGF2aWQ6dGVzdDEyMw==' } - + ActiveResource::HttpMock.respond_to do |mock| mock.get "/people/2.xml", @authorization_request_header, @david mock.put "/people/2.xml", @authorization_request_header, nil, 204 @@ -48,7 +48,7 @@ class AuthorizationTest < Test::Unit::TestCase def test_get david = @authenticated_conn.get("/people/2.xml") - assert_equal "David", david["person"]["name"] + assert_equal "David", david["name"] end def test_post -- cgit v1.2.3