diff options
author | Rick Olson <technoweenie@gmail.com> | 2006-09-20 19:31:17 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2006-09-20 19:31:17 +0000 |
commit | 4d63e01fa052749f742e90bcb3889cbae6152c92 (patch) | |
tree | 5f6b63d7b74685ff80a2366b4f3d0d6124176a09 /activeresource/test/base_errors_test.rb | |
parent | 5e5b87b412e310fac4980fa5dc0ed7f0e58771cd (diff) | |
download | rails-4d63e01fa052749f742e90bcb3889cbae6152c92.tar.gz rails-4d63e01fa052749f742e90bcb3889cbae6152c92.tar.bz2 rails-4d63e01fa052749f742e90bcb3889cbae6152c92.zip |
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
Diffstat (limited to 'activeresource/test/base_errors_test.rb')
-rw-r--r-- | activeresource/test/base_errors_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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", "<?xml version=\"1.0\" encoding=\"UTF-8\"?><errors><error>Age can't be blank</error><error>Name can't be blank</error><error>Name must start with a letter</error><error>Person quota full for today.</error></errors>", 400 + mock.post "/people.xml", "<?xml version=\"1.0\" encoding=\"UTF-8\"?><errors><error>Age can't be blank</error><error>Name can't be blank</error><error>Name must start with a letter</error><error>Person quota full for today.</error></errors>", 400 end @exception = nil @person = Person.new(:name => '', :age => '') |