add test case for js.erb partials on *.js formatted requests

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6735 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Rick Olson 2007-05-15 03:15:36 +00:00
parent 80074cb4de
commit fa3618d375
2 changed files with 6 additions and 0 deletions

@ -388,6 +388,11 @@ def test_should_render_html_formatted_partial_with_rjs
assert_equal %(Element.replace("foo", "partial html");), @response.body
end
def test_should_render_js_partial
xhr :get, :partial, :format => 'js'
assert_equal 'partial js', @response.body
end
protected
def assert_deprecated_render(&block)
assert_deprecated(/render/, &block)

@ -0,0 +1 @@
partial js