aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/render_test.rb
diff options
context:
space:
mode:
authorRyan Bates <ryan@railscasts.com>2008-08-19 19:09:04 -0500
committerJoshua Peek <josh@joshpeek.com>2008-08-19 19:09:04 -0500
commita8ece12fe2ac7838407954453e0d31af6186a5db (patch)
tree5a6cb0a957bebc1da95c1918563db10447cacd26 /actionpack/test/controller/render_test.rb
parent71c4ff07ab4313c1f4781d59ad2f4528f5875665 (diff)
downloadrails-a8ece12fe2ac7838407954453e0d31af6186a5db.tar.gz
rails-a8ece12fe2ac7838407954453e0d31af6186a5db.tar.bz2
rails-a8ece12fe2ac7838407954453e0d31af6186a5db.zip
Return nil instead of a space when passing an empty collection or nil to 'render :partial' [#791 state:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
Diffstat (limited to 'actionpack/test/controller/render_test.rb')
-rw-r--r--actionpack/test/controller/render_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/controller/render_test.rb b/actionpack/test/controller/render_test.rb
index 1b9b12acc6..3008f5ca03 100644
--- a/actionpack/test/controller/render_test.rb
+++ b/actionpack/test/controller/render_test.rb
@@ -329,7 +329,7 @@ class RenderTest < Test::Unit::TestCase
def test_render_text_with_nil
get :render_text_with_nil
assert_response 200
- assert_equal '', @response.body
+ assert_equal ' ', @response.body
end
def test_render_text_with_false