aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-03-13 05:24:10 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-03-13 05:24:10 +0000
commit1def3f0073d94564ab46a02a6c567a6c091a4e96 (patch)
treeaef38e8578989954a3ea2e832fe52466645c414e /actionpack/test/template
parente3dab67c44ed047cc91ccfcc17c5ee2bb9997be3 (diff)
downloadrails-1def3f0073d94564ab46a02a6c567a6c091a4e96.tar.gz
rails-1def3f0073d94564ab46a02a6c567a6c091a4e96.tar.bz2
rails-1def3f0073d94564ab46a02a6c567a6c091a4e96.zip
Deprecation: remove deprecated update_element_function, start_form_tag, and end_form_tag. Use RJS and form_tag instead.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6409 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/template')
-rw-r--r--actionpack/test/template/deprecated_helper_test.rb36
-rw-r--r--actionpack/test/template/form_tag_helper_test.rb29
2 files changed, 0 insertions, 65 deletions
diff --git a/actionpack/test/template/deprecated_helper_test.rb b/actionpack/test/template/deprecated_helper_test.rb
deleted file mode 100644
index 1d4f7624f7..0000000000
--- a/actionpack/test/template/deprecated_helper_test.rb
+++ /dev/null
@@ -1,36 +0,0 @@
-require "#{File.dirname(__FILE__)}/../abstract_unit"
-
-class DeprecatedHelperTest < Test::Unit::TestCase
- include ActionView::Helpers::JavaScriptHelper
- include ActionView::Helpers::CaptureHelper
-
- def test_update_element_function
- assert_deprecated 'update_element_function' do
-
- assert_equal %($('myelement').innerHTML = 'blub';\n),
- update_element_function('myelement', :content => 'blub')
- assert_equal %($('myelement').innerHTML = 'blub';\n),
- update_element_function('myelement', :action => :update, :content => 'blub')
- assert_equal %($('myelement').innerHTML = '';\n),
- update_element_function('myelement', :action => :empty)
- assert_equal %(Element.remove('myelement');\n),
- update_element_function('myelement', :action => :remove)
-
- assert_equal %(new Insertion.Bottom('myelement','blub');\n),
- update_element_function('myelement', :position => 'bottom', :content => 'blub')
- assert_equal %(new Insertion.Bottom('myelement','blub');\n),
- update_element_function('myelement', :action => :update, :position => :bottom, :content => 'blub')
-
- _erbout = ""
- assert_equal %($('myelement').innerHTML = 'test';\n),
- update_element_function('myelement') { _erbout << "test" }
-
- _erbout = ""
- assert_equal %($('myelement').innerHTML = 'blockstuff';\n),
- update_element_function('myelement', :content => 'paramstuff') { _erbout << "blockstuff" }
-
- end
- end
-
-end
-
diff --git a/actionpack/test/template/form_tag_helper_test.rb b/actionpack/test/template/form_tag_helper_test.rb
index b7db62993a..7750f41bd1 100644
--- a/actionpack/test/template/form_tag_helper_test.rb
+++ b/actionpack/test/template/form_tag_helper_test.rb
@@ -147,32 +147,3 @@ class FormTagHelperTest < Test::Unit::TestCase
assert_equal 1, 1
end
end
-
-class DeprecatedFormTagHelperTest < Test::Unit::TestCase
- include ActionView::Helpers::UrlHelper
- include ActionView::Helpers::TagHelper
- include ActionView::Helpers::FormTagHelper
- include ActionView::Helpers::TextHelper
- include ActionView::Helpers::CaptureHelper
-
- def setup
- @controller = Class.new do
- def url_for(options, *parameters_for_method_reference)
- "http://www.example.com"
- end
- end
- @controller = @controller.new
- end
-
- def test_start_form_tag_deprecation
- assert_deprecated /start_form_tag/ do
- start_form_tag
- end
- end
-
- def test_end_form_tag_deprecation
- assert_deprecated /end_form_tag/ do
- end_form_tag
- end
- end
-end