diff --git a/actionpack/test/template/javascript_helper_test.rb b/actionpack/test/template/javascript_helper_test.rb index da574624ec..08bbd5e95f 100644 --- a/actionpack/test/template/javascript_helper_test.rb +++ b/actionpack/test/template/javascript_helper_test.rb @@ -69,4 +69,14 @@ class JavaScriptHelperTest < Test::Unit::TestCase end assert_dom_equal %(), html end + + def test_javascript_tag + assert_dom_equal "", + javascript_tag("alert('hello')") + end + + def test_javascript_tag_with_options + assert_dom_equal "", + javascript_tag("alert('hello')", :id => "the_js_tag") + end end