diff options
author | Rick Olson <technoweenie@gmail.com> | 2006-12-12 15:29:54 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2006-12-12 15:29:54 +0000 |
commit | 55d4dbb8df9b4e6e46d461352f97e35ba69b417e (patch) | |
tree | 399c3929848e39f21f5770a9e11e5138407ea745 /activeresource/test/authorization_test.rb | |
parent | 2f5ee5a812bee922b198c7efbe3ffff29d072ffd (diff) | |
download | rails-55d4dbb8df9b4e6e46d461352f97e35ba69b417e.tar.gz rails-55d4dbb8df9b4e6e46d461352f97e35ba69b417e.tar.bz2 rails-55d4dbb8df9b4e6e46d461352f97e35ba69b417e.zip |
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
Diffstat (limited to 'activeresource/test/authorization_test.rb')
-rw-r--r-- | activeresource/test/authorization_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 |