Namespace
Methods
T
Instance Public methods
test_render_vanilla_js()
# File actionpack/test/controller/render_js_test.rb, line 24
def test_render_vanilla_js
  xhr :get, :render_vanilla_js_hello
  assert_equal "alert('hello')", @response.body
  assert_equal "text/javascript", @response.content_type
end
test_should_render_js_partial()
# 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