aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-07-24 13:20:29 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-07-24 13:20:29 +0000
commit1ae0a53d861c43dff8883fc956a08404c23f180c (patch)
tree25f85878792f5bcd655872ed3bd0fecce6369a65 /actionpack/test/controller
parentb25f9af998ad26653083e004b7a6cb9ca0061940 (diff)
downloadrails-1ae0a53d861c43dff8883fc956a08404c23f180c.tar.gz
rails-1ae0a53d861c43dff8883fc956a08404c23f180c.tar.bz2
rails-1ae0a53d861c43dff8883fc956a08404c23f180c.zip
Fixed regression for content_for #1820 [Stefan Kaes]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1911 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r--actionpack/test/controller/capture_test.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/actionpack/test/controller/capture_test.rb b/actionpack/test/controller/capture_test.rb
index a48baaeda1..eab7865937 100644
--- a/actionpack/test/controller/capture_test.rb
+++ b/actionpack/test/controller/capture_test.rb
@@ -4,6 +4,10 @@ class CaptureController < ActionController::Base
def self.controller_name; "test"; end
def self.controller_path; "test"; end
+ def content_for
+ render :layout => "talk_from_action"
+ end
+
def rescue_action(e) raise end
end
@@ -27,6 +31,11 @@ class CaptureTest < Test::Unit::TestCase
get :capturing
assert_equal "Dreamy days", @response.body.strip
end
+
+ def test_content_for
+ get :content_for
+ assert_equal "<title>Putting stuff in the title!</title>\n\nGreat stuff!", @response.body
+ end
def test_update_element_with_capture
get :update_element_with_capture