diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG
index c67592374e..ccc8e63a9d 100644
--- a/actionpack/CHANGELOG
+++ b/actionpack/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*
+* Improve Action View test coverage. #7241, #7243, #7244 [Rich Collins]
+
* Resources: url_for([parent, child]) generates /parents/1/children/2 for the nested resource. Likewise with the other simply helpful methods like form_for and link_to. #6432 [mhw, Jonathan Vaught, lotswholetime]
* Assume html format when rendering partials in RJS. #8076 [Rick]
diff --git a/actionpack/test/template/javascript_helper_test.rb b/actionpack/test/template/javascript_helper_test.rb
index 7ffc381df5..da574624ec 100644
--- a/actionpack/test/template/javascript_helper_test.rb
+++ b/actionpack/test/template/javascript_helper_test.rb
@@ -46,6 +46,11 @@ class JavaScriptHelperTest < Test::Unit::TestCase
assert_dom_equal %(Greet me!), html
end
+ def test_link_to_function_with_href
+ assert_dom_equal %(Greeting),
+ link_to_function("Greeting", "alert('Hello world!')", :href => 'http://example.com/')
+ end
+
def test_button_to_function
assert_dom_equal %(),
button_to_function("Greeting", "alert('Hello world!')")
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)