Permalink
Browse files

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
  • Loading branch information...
1 parent 80074cb commit fa3618d3753b5591ed19d98d52c55716d814e34a @technoweenie technoweenie committed May 15, 2007
Showing with 6 additions and 0 deletions.
  1. +5 −0 actionpack/test/controller/render_test.rb
  2. +1 −0 actionpack/test/fixtures/test/_partial.js.erb
@@ -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

0 comments on commit fa3618d

Please sign in to comment.