Source: show | on GitHub
# File actionpack/test/controller/render_js_test.rb, line 24 def test_render_vanilla_js get :render_vanilla_js_hello, xhr: true 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 get :show_partial, format: 'js', xhr: true assert_equal 'partial js', @response.body end