aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/render_test.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2007-04-24 18:29:37 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2007-04-24 18:29:37 +0000
commit82d70d1d16443edc787b2a3acf99dd1ff7f8fdcc (patch)
treeba04e190c090a03b24dbc98d298cb22ec73932af /actionpack/test/controller/render_test.rb
parentb445a74c5e1cdb10333b02515e42b584463ae10b (diff)
downloadrails-82d70d1d16443edc787b2a3acf99dd1ff7f8fdcc.tar.gz
rails-82d70d1d16443edc787b2a3acf99dd1ff7f8fdcc.tar.bz2
rails-82d70d1d16443edc787b2a3acf99dd1ff7f8fdcc.zip
Added that render :xml will try to call to_xml if it can [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6574 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/controller/render_test.rb')
-rw-r--r--actionpack/test/controller/render_test.rb9
1 files changed, 0 insertions, 9 deletions
diff --git a/actionpack/test/controller/render_test.rb b/actionpack/test/controller/render_test.rb
index eb23ed0c5b..d51af51454 100644
--- a/actionpack/test/controller/render_test.rb
+++ b/actionpack/test/controller/render_test.rb
@@ -73,10 +73,6 @@ class TestController < ActionController::Base
head :ok
end
- def location
- render :xml => "<hello/>", :location => "http://example.com", :status => 201
- end
-
def greeting
# let's just rely on the template
end
@@ -372,11 +368,6 @@ class RenderTest < Test::Unit::TestCase
assert_equal '<test>passed formatted html erb</test>', @response.body
end
- def test_rendering_with_location_should_set_header
- get :location
- assert_equal "http://example.com", @response.headers["Location"]
- end
-
protected
def assert_deprecated_render(&block)