aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/test/cases/finder_test.rb
diff options
context:
space:
mode:
authorJosh Kalderimis <josh.kalderimis@gmail.com>2011-05-17 19:50:34 -0400
committerJosh Kalderimis <josh.kalderimis@gmail.com>2011-05-18 00:34:10 -0400
commit00958696d871da3126113be70bb858d078b86ab5 (patch)
tree6e4ce7a5389a171cf2be8d11de5aefa6e2bcc4cf /activeresource/test/cases/finder_test.rb
parentb641ab5baec0956c0135e7341ca238eff3f9d5a5 (diff)
downloadrails-00958696d871da3126113be70bb858d078b86ab5.tar.gz
rails-00958696d871da3126113be70bb858d078b86ab5.tar.bz2
rails-00958696d871da3126113be70bb858d078b86ab5.zip
corrected some further tests and docs for the ARes change to json change
Diffstat (limited to 'activeresource/test/cases/finder_test.rb')
-rw-r--r--activeresource/test/cases/finder_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activeresource/test/cases/finder_test.rb b/activeresource/test/cases/finder_test.rb
index 73030339a9..9c51f2a390 100644
--- a/activeresource/test/cases/finder_test.rb
+++ b/activeresource/test/cases/finder_test.rb
@@ -108,9 +108,9 @@ class FinderTest < Test::Unit::TestCase
end
def test_find_all_by_from_with_options
- ActiveResource::HttpMock.respond_to { |m| m.get "/companies/1/people.xml", {}, @people_david }
+ ActiveResource::HttpMock.respond_to { |m| m.get "/companies/1/people.json", {}, @people_david }
- people = Person.find(:all, :from => "/companies/1/people.xml")
+ people = Person.find(:all, :from => "/companies/1/people.json")
assert_equal 1, people.size
assert_equal "David", people.first.name
end