aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller
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/controller
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/controller')
-rw-r--r--actionpack/test/controller/capture_test.rb17
1 files changed, 3 insertions, 14 deletions
diff --git a/actionpack/test/controller/capture_test.rb b/actionpack/test/controller/capture_test.rb
index 300bdc3a84..42ec2568da 100644
--- a/actionpack/test/controller/capture_test.rb
+++ b/actionpack/test/controller/capture_test.rb
@@ -64,19 +64,8 @@ class CaptureTest < Test::Unit::TestCase
assert_equal expected_content_for_output, @response.body
end
- def test_update_element_with_capture
- assert_deprecated 'update_element_function' do
- get :update_element_with_capture
- end
- assert_equal(
- "<script type=\"text/javascript\">\n//<![CDATA[\n$('products').innerHTML = '\\n <p>Product 1</p>\\n <p>Product 2</p>\\n';\n\n//]]>\n</script>" +
- "\n\n$('status').innerHTML = '\\n <b>You bought something!</b>\\n';",
- @response.body.strip
- )
- end
-
private
- def expected_content_for_output
- "<title>Putting stuff in the title!</title>\n\nGreat stuff!"
- end
+ def expected_content_for_output
+ "<title>Putting stuff in the title!</title>\n\nGreat stuff!"
+ end
end