Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
1f893307
R
rails
项目概览
张重言
/
rails
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rails
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
1f893307
编写于
5月 03, 2014
作者:
G
Guo Xiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove tests method for test cases when controller can be inferred.
上级
b231825f
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
1 addition
and
21 deletion
+1
-21
actionpack/test/controller/force_ssl_test.rb
actionpack/test/controller/force_ssl_test.rb
+1
-14
actionpack/test/controller/mime/accept_format_test.rb
actionpack/test/controller/mime/accept_format_test.rb
+0
-2
actionpack/test/controller/mime/respond_to_test.rb
actionpack/test/controller/mime/respond_to_test.rb
+0
-2
actionpack/test/controller/mime/respond_with_test.rb
actionpack/test/controller/mime/respond_with_test.rb
+0
-2
actionpack/test/controller/send_file_test.rb
actionpack/test/controller/send_file_test.rb
+0
-1
未找到文件。
actionpack/test/controller/force_ssl_test.rb
浏览文件 @
1f893307
...
...
@@ -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
...
...
actionpack/test/controller/mime/accept_format_test.rb
浏览文件 @
1f893307
...
...
@@ -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'
...
...
actionpack/test/controller/mime/respond_to_test.rb
浏览文件 @
1f893307
...
...
@@ -258,8 +258,6 @@ def set_layout
end
class
RespondToControllerTest
<
ActionController
::
TestCase
tests
RespondToController
def
setup
super
@request
.
host
=
"www.example.com"
...
...
actionpack/test/controller/mime/respond_with_test.rb
浏览文件 @
1f893307
...
...
@@ -138,8 +138,6 @@ def index
end
class
RespondWithControllerTest
<
ActionController
::
TestCase
tests
RespondWithController
def
setup
super
@request
.
host
=
"www.example.com"
...
...
actionpack/test/controller/send_file_test.rb
浏览文件 @
1f893307
...
...
@@ -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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录