Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
edc0f271
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,发现更多精彩内容 >>
提交
edc0f271
编写于
6月 20, 2014
作者:
M
Matthew Draper
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #15537 from tgxworld/fix_state_leak
Fix state leak.
上级
eeb9a7c1
5cc78993
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
5 addition
and
5 deletion
+5
-5
actionpack/lib/action_controller/test_case.rb
actionpack/lib/action_controller/test_case.rb
+0
-1
actionpack/test/controller/new_base/bare_metal_test.rb
actionpack/test/controller/new_base/bare_metal_test.rb
+2
-0
actionpack/test/controller/render_test.rb
actionpack/test/controller/render_test.rb
+2
-4
actionpack/test/controller/send_file_test.rb
actionpack/test/controller/send_file_test.rb
+1
-0
未找到文件。
actionpack/lib/action_controller/test_case.rb
浏览文件 @
edc0f271
...
@@ -593,7 +593,6 @@ def process(action, http_method = 'GET', *args)
...
@@ -593,7 +593,6 @@ def process(action, http_method = 'GET', *args)
unless
@controller
.
respond_to?
(
:recycle!
)
unless
@controller
.
respond_to?
(
:recycle!
)
@controller
.
extend
(
Testing
::
Functional
)
@controller
.
extend
(
Testing
::
Functional
)
@controller
.
class
.
class_eval
{
include
Testing
}
end
end
@request
.
recycle!
@request
.
recycle!
...
...
actionpack/test/controller/new_base/bare_metal_test.rb
浏览文件 @
edc0f271
...
@@ -2,6 +2,8 @@
...
@@ -2,6 +2,8 @@
module
BareMetalTest
module
BareMetalTest
class
BareController
<
ActionController
::
Metal
class
BareController
<
ActionController
::
Metal
include
ActionController
::
RackDelegation
def
index
def
index
self
.
response_body
=
"Hello world"
self
.
response_body
=
"Hello world"
end
end
...
...
actionpack/test/controller/render_test.rb
浏览文件 @
edc0f271
...
@@ -242,6 +242,8 @@ class MetalTestController < ActionController::Metal
...
@@ -242,6 +242,8 @@ class MetalTestController < ActionController::Metal
include
AbstractController
::
Rendering
include
AbstractController
::
Rendering
include
ActionView
::
Rendering
include
ActionView
::
Rendering
include
ActionController
::
Rendering
include
ActionController
::
Rendering
include
ActionController
::
RackDelegation
def
accessing_logger_in_template
def
accessing_logger_in_template
render
:inline
=>
"<%= logger.class %>"
render
:inline
=>
"<%= logger.class %>"
...
@@ -387,10 +389,6 @@ def test_last_modified_works_with_less_than_too
...
@@ -387,10 +389,6 @@ def test_last_modified_works_with_less_than_too
class
EtagRenderTest
<
ActionController
::
TestCase
class
EtagRenderTest
<
ActionController
::
TestCase
tests
TestControllerWithExtraEtags
tests
TestControllerWithExtraEtags
def
setup
super
end
def
test_multiple_etags
def
test_multiple_etags
@request
.
if_none_match
=
etag
([
"123"
,
'ab'
,
:cde
,
[
:f
]])
@request
.
if_none_match
=
etag
([
"123"
,
'ab'
,
:cde
,
[
:f
]])
get
:fresh
get
:fresh
...
...
actionpack/test/controller/send_file_test.rb
浏览文件 @
edc0f271
...
@@ -9,6 +9,7 @@ def file_data() @data ||= File.open(file_path, 'rb') { |f| f.read } end
...
@@ -9,6 +9,7 @@ def file_data() @data ||= File.open(file_path, 'rb') { |f| f.read } end
class
SendFileController
<
ActionController
::
Base
class
SendFileController
<
ActionController
::
Base
include
TestFileUtils
include
TestFileUtils
include
ActionController
::
Testing
layout
"layouts/standard"
# to make sure layouts don't interfere
layout
"layouts/standard"
# to make sure layouts don't interfere
attr_writer
:options
attr_writer
:options
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录