diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-10 00:36:23 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-10 00:36:23 +0000 |
commit | 651ea0d39c5c766ffb2abc8330fd6c6f88125720 (patch) | |
tree | 8e612b7bae9b7890536c5009f0e2fd1c5c3c1f5a /actionpack/CHANGELOG | |
parent | 7ece0e166d7e65eeaeca5138b7ef0353c598bf95 (diff) | |
download | rails-651ea0d39c5c766ffb2abc8330fd6c6f88125720.tar.gz rails-651ea0d39c5c766ffb2abc8330fd6c6f88125720.tar.bz2 rails-651ea0d39c5c766ffb2abc8330fd6c6f88125720.zip |
Added assigns shortcut for @response.template.assigns to controller test cases [bitsweat]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@881 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/CHANGELOG')
-rw-r--r-- | actionpack/CHANGELOG | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG index 53cd36f611..cc1d9c8297 100644 --- a/actionpack/CHANGELOG +++ b/actionpack/CHANGELOG @@ -1,5 +1,21 @@ *SVN* +* Added assigns shortcut for @response.template.assigns to controller test cases [bitsweat]. Example: + + Before: + + def test_list + assert_equal 5, @response.template.assigns['recipes'].size + assert_equal 8, @response.template.assigns['categories'].size + end + + After: + + def test_list + assert_equal 5, assigns(:recipes).size + assert_equal 8, assigns(:categories).size + end + * Added TagHelper#image_tag and deprecated UrlHelper#link_image_to (recommended approach is to combine image_tag and link_to instead) * Fixed textilize to be resilient to getting nil parsed (by using Object#blank? instead of String#empty?) |