Methods
T
Instance Public methods
test_javascript_with_format()
# File actionpack/test/controller/mime_responds_test.rb, line 170
def test_javascript_with_format
  @request.accept = "text/javascript"
  get :index, :format => 'js'
  assert_match "function addition(a,b){ return a+b; }", @response.body
end
test_javascript_with_no_format()
# File actionpack/test/controller/mime_responds_test.rb, line 176
def test_javascript_with_no_format
  @request.accept = "text/javascript"
  get :index
  assert_match "function addition(a,b){ return a+b; }", @response.body
end
test_javascript_with_no_format_only_star_star()
# File actionpack/test/controller/mime_responds_test.rb, line 182
def test_javascript_with_no_format_only_star_star
  @request.accept = "*/*"
  get :index
  assert_match "function addition(a,b){ return a+b; }", @response.body
end