Permalink
Browse files

move the ARes conn test to the correct location

  • Loading branch information...
1 parent 6062017 commit 4a9365ee18c055d970a5f8faaac9443a8bfb0d24 @joshk joshk committed May 17, 2011
Showing with 5 additions and 5 deletions.
  1. +5 −5 activeresource/test/{ → cases}/connection_test.rb
@@ -121,7 +121,7 @@ def test_timeout_accessor
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 @@ def test_head
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

0 comments on commit 4a9365e

Please sign in to comment.