Source: show | on GitHub
# File actionpack/test/controller/render_js_test.rb, line 24 def test_render_vanilla_js get :render_vanilla_js_hello assert_equal "alert('hello')", @response.body assert_equal "text/javascript", @response.content_type end
# File actionpack/test/controller/render_js_test.rb, line 30 def test_should_render_js_partial xhr :get, :show_partial, :format => 'js' assert_equal 'partial js', @response.body end