diff options
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/test/controller/mime_responds_test.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/actionpack/test/controller/mime_responds_test.rb b/actionpack/test/controller/mime_responds_test.rb index 6fe14bf65b..e696a41cb5 100644 --- a/actionpack/test/controller/mime_responds_test.rb +++ b/actionpack/test/controller/mime_responds_test.rb @@ -246,4 +246,12 @@ class MimeControllerTest < Test::Unit::TestCase get :all_types_with_layout assert_equal '<html>HTML for all_types_with_layout</html>', @response.body end -end
\ No newline at end of file + + def test_xhr + xhr :get, :js_or_html + assert_equal 'JS', @response.body + + xhr :get, :using_defaults + assert_equal '$("body").visualEffect("highlight");', @response.body + end +end |