From 34b94de8b87d7c32a1fdba72eb1f02296f31cffe Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Fri, 8 Jun 2007 04:00:15 +0000 Subject: Improve Action View test coverage. Closes #7241, #7243, #7244. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6967 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/test/template/prototype_helper_test.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'actionpack/test/template/prototype_helper_test.rb') diff --git a/actionpack/test/template/prototype_helper_test.rb b/actionpack/test/template/prototype_helper_test.rb index 7e60e0750a..a26ca680a8 100644 --- a/actionpack/test/template/prototype_helper_test.rb +++ b/actionpack/test/template/prototype_helper_test.rb @@ -210,7 +210,12 @@ class PrototypeHelperTest < Test::Unit::TestCase assert_dom_equal %(), observe_form("cart", :frequency => 2, :function => "alert('Form changed')") end - + + def test_observe_field_without_frequency + assert_dom_equal %(), + observe_field("glass") + end + def test_update_page block = Proc.new { |page| page.replace_html('foo', 'bar') } assert_equal create_generator(&block).to_s, update_page(&block) -- cgit v1.2.3