提交 1f893307 编写于 作者: G Guo Xiang

Remove tests method for test cases when controller can be inferred.

上级 b231825f
......@@ -93,8 +93,6 @@ def cheeseburger
end
class ForceSSLControllerLevelTest < ActionController::TestCase
tests ForceSSLControllerLevel
def test_banana_redirects_to_https
get :banana
assert_response 301
......@@ -115,8 +113,6 @@ def test_cheeseburger_redirects_to_https
end
class ForceSSLCustomOptionsTest < ActionController::TestCase
tests ForceSSLCustomOptions
def setup
@request.env['HTTP_HOST'] = 'www.example.com:80'
end
......@@ -189,8 +185,6 @@ def test_redirect_to_custom_notice
end
class ForceSSLOnlyActionTest < ActionController::TestCase
tests ForceSSLOnlyAction
def test_banana_not_redirects_to_https
get :banana
assert_response 200
......@@ -204,8 +198,6 @@ def test_cheeseburger_redirects_to_https
end
class ForceSSLExceptActionTest < ActionController::TestCase
tests ForceSSLExceptAction
def test_banana_not_redirects_to_https
get :banana
assert_response 200
......@@ -219,8 +211,6 @@ def test_cheeseburger_redirects_to_https
end
class ForceSSLIfConditionTest < ActionController::TestCase
tests ForceSSLIfCondition
def test_banana_not_redirects_to_https
get :banana
assert_response 200
......@@ -234,8 +224,6 @@ def test_cheeseburger_redirects_to_https
end
class ForceSSLFlashTest < ActionController::TestCase
tests ForceSSLFlash
def test_cheeseburger_redirects_to_https
get :set_flash
assert_response 302
......@@ -315,7 +303,6 @@ def test_force_ssl_redirects_to_same_format
end
class RedirectToSSLTest < ActionController::TestCase
tests RedirectToSSL
def test_banana_redirects_to_https_if_not_https
get :banana
assert_response 301
......@@ -334,4 +321,4 @@ def test_banana_does_not_redirect_if_already_https
assert_response 200
assert_equal 'ihaz', response.body
end
end
\ No newline at end of file
end
......@@ -9,8 +9,6 @@ def index
end
class StarStarMimeControllerTest < ActionController::TestCase
tests StarStarMimeController
def test_javascript_with_format
@request.accept = "text/javascript"
get :index, :format => 'js'
......
......@@ -258,8 +258,6 @@ def set_layout
end
class RespondToControllerTest < ActionController::TestCase
tests RespondToController
def setup
super
@request.host = "www.example.com"
......
......@@ -138,8 +138,6 @@ def index
end
class RespondWithControllerTest < ActionController::TestCase
tests RespondWithController
def setup
super
@request.host = "www.example.com"
......
......@@ -30,7 +30,6 @@ class SendFileWithActionControllerLive < SendFileController
end
class SendFileTest < ActionController::TestCase
tests SendFileController
include TestFileUtils
Mime::Type.register "image/png", :png unless defined? Mime::PNG
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册