diff options
author | José Valim <jose.valim@gmail.com> | 2010-03-12 12:08:23 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-03-12 12:08:23 +0100 |
commit | 4840acd485a4a6bcdd73338447af7e1340587e54 (patch) | |
tree | ff3b9fff5d9a64e475706fe2d32909ec1a3a1e47 /actionpack/test/template | |
parent | 839362fa07de3f7bdf1fc1a361ff456cd02efc4e (diff) | |
download | rails-4840acd485a4a6bcdd73338447af7e1340587e54.tar.gz rails-4840acd485a4a6bcdd73338447af7e1340587e54.tar.bz2 rails-4840acd485a4a6bcdd73338447af7e1340587e54.zip |
%= works for content_tag and does not require parenthesis on method call
Diffstat (limited to 'actionpack/test/template')
-rw-r--r-- | actionpack/test/template/erb/tag_helper_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/template/erb/tag_helper_test.rb b/actionpack/test/template/erb/tag_helper_test.rb index b91539ef0b..cc96a43901 100644 --- a/actionpack/test/template/erb/tag_helper_test.rb +++ b/actionpack/test/template/erb/tag_helper_test.rb @@ -31,8 +31,8 @@ module ERBTest ActionView::Template::Handlers::Erubis.new(template).evaluate(context.new) end - test "percent equals works for content_tag" do - assert_equal "<div>Hello world</div>", render_content("content_tag(:div)", "Hello world") + test "percent equals works for content_tag and does not require parenthesis on method call" do + assert_equal "<div>Hello world</div>", render_content("content_tag :div", "Hello world") end test "percent equals works for javascript_tag" do |