From 4d63e01fa052749f742e90bcb3889cbae6152c92 Mon Sep 17 00:00:00 2001 From: Rick Olson Date: Wed, 20 Sep 2006 19:31:17 +0000 Subject: fixed failing tests now that non-GET requests are sent with .xml file ext. Extracted #id_from_response as an entry point for customizing how a created resource gets its own ID. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5153 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activeresource/test/base_errors_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activeresource/test/base_errors_test.rb') diff --git a/activeresource/test/base_errors_test.rb b/activeresource/test/base_errors_test.rb index 25a368535f..5125adf218 100644 --- a/activeresource/test/base_errors_test.rb +++ b/activeresource/test/base_errors_test.rb @@ -4,7 +4,7 @@ require "fixtures/person" class BaseErrorsTest < Test::Unit::TestCase def setup ActiveResource::HttpMock.respond_to do |mock| - mock.post "/people", "Age can't be blankName can't be blankName must start with a letterPerson quota full for today.", 400 + mock.post "/people.xml", "Age can't be blankName can't be blankName must start with a letterPerson quota full for today.", 400 end @exception = nil @person = Person.new(:name => '', :age => '') -- cgit v1.2.3