From 2d8679993c3e7ec2920fd818dacc7cb2000b9f89 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 29 Jun 2005 08:09:00 +0000 Subject: Fix JavaScriptHelper capitalization and make it compatible with Prototype #1545 [Sam Stephenson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1561 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/test/template/javascript_helper.rb | 6 +++--- actionpack/test/template/upload_progress_helper_test.rb | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'actionpack/test/template') diff --git a/actionpack/test/template/javascript_helper.rb b/actionpack/test/template/javascript_helper.rb index f70703c819..65864fc596 100644 --- a/actionpack/test/template/javascript_helper.rb +++ b/actionpack/test/template/javascript_helper.rb @@ -1,7 +1,7 @@ require File.dirname(__FILE__) + '/../abstract_unit' -class JavascriptHelperTest < Test::Unit::TestCase - include ActionView::Helpers::JavascriptHelper +class JavaScriptHelperTest < Test::Unit::TestCase + include ActionView::Helpers::JavaScriptHelper include ActionView::Helpers::UrlHelper include ActionView::Helpers::TagHelper @@ -19,7 +19,7 @@ class JavascriptHelperTest < Test::Unit::TestCase def test_define_javascript_functions # check if prototype.js is included first - assert_not_nil define_javascript_functions.split("\n")[1].match(/Prototype: an object-oriented Javascript library/) + assert_not_nil define_javascript_functions.split("\n")[1].match(/Prototype JavaScript framework/) end def test_escape_javascript diff --git a/actionpack/test/template/upload_progress_helper_test.rb b/actionpack/test/template/upload_progress_helper_test.rb index 361aa4bb08..287516b765 100644 --- a/actionpack/test/template/upload_progress_helper_test.rb +++ b/actionpack/test/template/upload_progress_helper_test.rb @@ -39,7 +39,7 @@ class UploadProgressHelperTest < Test::Unit::TestCase include ActionView::Helpers::FormTagHelper include ActionView::Helpers::TagHelper include ActionView::Helpers::UrlHelper - include ActionView::Helpers::JavascriptHelper + include ActionView::Helpers::JavaScriptHelper include ActionView::Helpers::UploadProgressHelper def next_upload_id; @upload_id = last_upload_id.succ; end @@ -175,7 +175,7 @@ class UploadProgressHelperTest < Test::Unit::TestCase include ActionView::Helpers::FormTagHelper include ActionView::Helpers::TagHelper include ActionView::Helpers::UrlHelper - include ActionView::Helpers::JavascriptHelper + include ActionView::Helpers::JavaScriptHelper include ActionView::Helpers::UploadProgressHelper def next_upload_id; @upload_id = last_upload_id.succ; end @@ -258,14 +258,14 @@ class UploadProgressHelperTest < Test::Unit::TestCase def test_form_tag_with_upload_progress assert_equal( - "
", + "", form_tag_with_upload_progress ) end def test_form_tag_with_upload_progress_custom assert_equal( - "", + "", form_tag_with_upload_progress({:upload_id => 5}, {:begin => "alert('foo')", :finish => "alert('bar')", :frequency => 6, :decay => 7, :target => 'awindow'}) ) end -- cgit v1.2.3