aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource
diff options
context:
space:
mode:
authorJosh Kalderimis <josh.kalderimis@gmail.com>2011-05-17 15:31:06 -0400
committerJosh Kalderimis <josh.kalderimis@gmail.com>2011-05-18 00:34:09 -0400
commit4a9365ee18c055d970a5f8faaac9443a8bfb0d24 (patch)
tree162a4339ae7538e8f4df2b69a65608c7c66e19c9 /activeresource
parent6062017382304b0872b18d84620d33e8204d7078 (diff)
downloadrails-4a9365ee18c055d970a5f8faaac9443a8bfb0d24.tar.gz
rails-4a9365ee18c055d970a5f8faaac9443a8bfb0d24.tar.bz2
rails-4a9365ee18c055d970a5f8faaac9443a8bfb0d24.zip
move the ARes conn test to the correct location
Diffstat (limited to 'activeresource')
-rw-r--r--activeresource/test/cases/connection_test.rb (renamed from activeresource/test/connection_test.rb)10
1 files changed, 5 insertions, 5 deletions
diff --git a/activeresource/test/connection_test.rb b/activeresource/test/cases/connection_test.rb
index 7c36393cf2..fa33ec8762 100644
--- a/activeresource/test/connection_test.rb
+++ b/activeresource/test/cases/connection_test.rb
@@ -121,7 +121,7 @@ class ConnectionTest < Test::Unit::TestCase
def test_get
matz = decode(@conn.get("/people/1.xml"))
- assert_equal "Matz", matz["name"]
+ assert_equal "Matz", matz["person"]["name"]
end
def test_head
@@ -132,18 +132,18 @@ class ConnectionTest < Test::Unit::TestCase
def test_get_with_header
david = decode(@conn.get("/people/2.xml", @header))
- assert_equal "David", david["name"]
+ assert_equal "David", david["person"]["name"]
end
def test_get_collection
people = decode(@conn.get("/people.xml"))
- assert_equal "Matz", people[0]["name"]
- assert_equal "David", people[1]["name"]
+ assert_equal "Matz", people["people"][0]["name"]
+ assert_equal "David", people["people"][1]["name"]
end
def test_get_collection_single
people = decode(@conn.get("/people_single_elements.xml"))
- assert_equal "Matz", people[0]["name"]
+ assert_equal "Matz", people["people"][0]["name"]
end
def test_get_collection_empty