class StarStarMimeControllerTest
Public Instance Methods
test_javascript_with_format()
click to toggle source
# File actionpack/test/controller/mime/accept_format_test.rb, line 14 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()
click to toggle source
# File actionpack/test/controller/mime/accept_format_test.rb, line 20 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()
click to toggle source
# File actionpack/test/controller/mime/accept_format_test.rb, line 26 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