diff options
author | Rasik Pandey <rbpandey@gmail.com> | 2008-08-30 04:19:18 +0300 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-08-29 18:45:39 -0700 |
commit | 16b9a554db7e1bf3f5f224cdc5b4d27480e053ff (patch) | |
tree | 7eef718fa623a5fcebb90de534b0eba2a6eae020 /activeresource/test/base | |
parent | 11eb29f60ab79caf22f7ca715500e32d9a1b03a2 (diff) | |
download | rails-16b9a554db7e1bf3f5f224cdc5b4d27480e053ff.tar.gz rails-16b9a554db7e1bf3f5f224cdc5b4d27480e053ff.tar.bz2 rails-16b9a554db7e1bf3f5f224cdc5b4d27480e053ff.zip |
Format related patches to support serializing data out in the correct format with correct http request headers per http method type [#450 state:resolved]
Signed-off-by: Tarmo Tänav <tarmo@itech.ee>
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'activeresource/test/base')
-rw-r--r-- | activeresource/test/base/custom_methods_test.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/activeresource/test/base/custom_methods_test.rb b/activeresource/test/base/custom_methods_test.rb index 62c33ef9bc..ba5799edfb 100644 --- a/activeresource/test/base/custom_methods_test.rb +++ b/activeresource/test/base/custom_methods_test.rb @@ -10,8 +10,7 @@ class CustomMethodsTest < Test::Unit::TestCase @ryan = { :name => 'Ryan' }.to_xml(:root => 'person') @addy = { :id => 1, :street => '12345 Street' }.to_xml(:root => 'address') @addy_deep = { :id => 1, :street => '12345 Street', :zip => "27519" }.to_xml(:root => 'address') - @default_request_headers = { 'Content-Type' => 'application/xml' } - + ActiveResource::HttpMock.respond_to do |mock| mock.get "/people/1.xml", {}, @matz mock.get "/people/1/shallow.xml", {}, @matz |