diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-03-12 03:39:58 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-03-12 03:39:58 +0000 |
commit | de660957a50227ef71a7c16524ccec2c45b980b5 (patch) | |
tree | 6d864ad49e05350ebc6fc33d788edc5f1fc8ee72 /actionpack/test/controller/render_test.rb | |
parent | 6e3e5cadfbd7db407364bf2571a5003cf3733480 (diff) | |
download | rails-de660957a50227ef71a7c16524ccec2c45b980b5.tar.gz rails-de660957a50227ef71a7c16524ccec2c45b980b5.tar.bz2 rails-de660957a50227ef71a7c16524ccec2c45b980b5.zip |
Added defaults to respond_to [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3842 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/controller/render_test.rb')
-rw-r--r-- | actionpack/test/controller/render_test.rb | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/actionpack/test/controller/render_test.rb b/actionpack/test/controller/render_test.rb index db6f71acc9..1ee77a549d 100644 --- a/actionpack/test/controller/render_test.rb +++ b/actionpack/test/controller/render_test.rb @@ -18,14 +18,6 @@ class TestController < ActionController::Base def hello_world end - def hello_world_from_rxml_using_action - render :action => "hello_world.rxml" - end - - def hello_world_from_rxml_using_template - render :template => "test/hello_world.rxml" - end - def render_hello_world render "test/hello_world" end @@ -251,12 +243,4 @@ class RenderTest < Test::Unit::TestCase get :accessing_local_assigns_in_inline_template_with_string_keys, :local_name => "Local David" assert_equal "Goodbye, Local David", @response.body end - - def test_overwritting_rendering_relative_file_with_extension - get :hello_world_from_rxml_using_template - assert_equal "<html>\n <p>Hello</p>\n</html>\n", @response.body - - get :hello_world_from_rxml_using_action - assert_equal "<html>\n <p>Hello</p>\n</html>\n", @response.body - end end |