aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorJan De Poorter <jan@defv.be>2008-07-29 13:11:38 +0200
committerPratik Naik <pratiknaik@gmail.com>2008-07-29 12:39:21 +0100
commit7aaf1689dda863b72623f0e52ad87e2b739cb22b (patch)
tree707d94cffa7d4c64e255c49d0826ef39ad41b6d3 /actionpack/test
parent2cf161a384cc361d856aa76639bcb30570d67286 (diff)
downloadrails-7aaf1689dda863b72623f0e52ad87e2b739cb22b.tar.gz
rails-7aaf1689dda863b72623f0e52ad87e2b739cb22b.tar.bz2
rails-7aaf1689dda863b72623f0e52ad87e2b739cb22b.zip
Fix that label_tag doesn't take a symbol for a name. [#719 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/template/form_tag_helper_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/actionpack/test/template/form_tag_helper_test.rb b/actionpack/test/template/form_tag_helper_test.rb
index 4e4102aec7..9b41ff8179 100644
--- a/actionpack/test/template/form_tag_helper_test.rb
+++ b/actionpack/test/template/form_tag_helper_test.rb
@@ -190,6 +190,12 @@ class FormTagHelperTest < ActionView::TestCase
assert_dom_equal expected, actual
end
+ def test_label_tag_with_symbol
+ actual = label_tag :title
+ expected = %(<label for="title">Title</label>)
+ assert_dom_equal expected, actual
+ end
+
def test_label_tag_with_text
actual = label_tag "title", "My Title"
expected = %(<label for="title">My Title</label>)