Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
dabf20d5
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,发现更多精彩内容 >>
提交
dabf20d5
编写于
1月 06, 2009
作者:
Y
Yehuda Katz
浏览文件
操作
浏览文件
下载
差异文件
Sync 'rails/rails/master'
上级
3027f9f9
8736dd32
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
15 addition
and
9 deletion
+15
-9
actionpack/Rakefile
actionpack/Rakefile
+1
-1
actionpack/lib/action_controller.rb
actionpack/lib/action_controller.rb
+1
-1
actionpack/lib/action_controller/base.rb
actionpack/lib/action_controller/base.rb
+1
-1
actionpack/lib/action_view/test_case.rb
actionpack/lib/action_view/test_case.rb
+2
-0
actionpack/test/controller/integration_test.rb
actionpack/test/controller/integration_test.rb
+3
-3
actionpack/test/controller/rack_test.rb
actionpack/test/controller/rack_test.rb
+6
-1
railties/lib/test_help.rb
railties/lib/test_help.rb
+1
-2
未找到文件。
actionpack/Rakefile
浏览文件 @
dabf20d5
...
...
@@ -81,7 +81,7 @@ spec = Gem::Specification.new do |s|
s
.
requirements
<<
'none'
s
.
add_dependency
(
'activesupport'
,
'= 2.3.0'
+
PKG_BUILD
)
s
.
add_dependency
(
'rack'
,
'
= 0.4
.0'
)
s
.
add_dependency
(
'rack'
,
'
>= 0.9
.0'
)
s
.
require_path
=
'lib'
s
.
autorequire
=
'action_controller'
...
...
actionpack/lib/action_controller.rb
浏览文件 @
dabf20d5
...
...
@@ -31,7 +31,7 @@
end
end
gem
'rack'
,
'
~> 0.4
.0'
gem
'rack'
,
'
>= 0.9
.0'
require
'rack'
module
ActionController
...
...
actionpack/lib/action_controller/base.rb
浏览文件 @
dabf20d5
...
...
@@ -1350,7 +1350,7 @@ def process_cleanup
end
Base
.
class_eval
do
[
F
lash
,
Filters
,
Layout
,
Benchmarking
,
Rescue
,
MimeResponds
,
Helpers
,
[
F
ilters
,
Layout
,
Benchmarking
,
Rescue
,
Flash
,
MimeResponds
,
Helpers
,
Cookies
,
Caching
,
Verification
,
Streaming
,
SessionManagement
,
HttpAuthentication
::
Basic
::
ControllerMethods
,
RecordIdentifier
,
RequestForgeryProtection
,
Translation
...
...
actionpack/lib/action_view/test_case.rb
浏览文件 @
dabf20d5
require
'active_support/test_case'
module
ActionView
class
Base
alias_method
:initialize_without_template_tracking
,
:initialize
...
...
actionpack/test/controller/integration_test.rb
浏览文件 @
dabf20d5
...
...
@@ -4,7 +4,7 @@
class
SessionTest
<
Test
::
Unit
::
TestCase
StubApp
=
lambda
{
|
env
|
[
200
,
{
"Content-Type"
=>
"text/html"
},
"Hello, World!"
]
[
200
,
{
"Content-Type"
=>
"text/html"
,
"Content-Length"
=>
"13"
},
"Hello, World!"
]
}
def
setup
...
...
@@ -465,9 +465,9 @@ class MetalTest < ActionController::IntegrationTest
class
Poller
def
self
.
call
(
env
)
if
env
[
"PATH_INFO"
]
=~
/^\/success/
[
200
,
{
"Content-Type"
=>
"text/plain"
},
"Hello World!"
]
[
200
,
{
"Content-Type"
=>
"text/plain"
,
"Content-Length"
=>
"12"
},
"Hello World!"
]
else
[
404
,
{
"Content-Type"
=>
"text/plain"
},
''
]
[
404
,
{
"Content-Type"
=>
"text/plain"
,
"Content-Length"
=>
"0"
},
''
]
end
end
end
...
...
actionpack/test/controller/rack_test.rb
浏览文件 @
dabf20d5
...
...
@@ -236,7 +236,12 @@ def test_streaming_block
status
,
headers
,
body
=
@response
.
to_a
assert_equal
200
,
status
assert_equal
({
"Content-Type"
=>
"text/html; charset=utf-8"
,
"Cache-Control"
=>
"no-cache"
,
"Set-Cookie"
=>
[]},
headers
)
assert_equal
({
"Content-Type"
=>
"text/html; charset=utf-8"
,
"Content-Length"
=>
""
,
"Cache-Control"
=>
"no-cache"
,
"Set-Cookie"
=>
[]
},
headers
)
parts
=
[]
body
.
each
{
|
part
|
parts
<<
part
}
...
...
railties/lib/test_help.rb
浏览文件 @
dabf20d5
...
...
@@ -3,8 +3,7 @@
silence_warnings
{
RAILS_ENV
=
"test"
}
require
'test/unit'
require
'active_support/test_case'
require
'action_controller/test_case'
require
'action_controller/test_process'
require
'action_view/test_case'
require
'action_controller/integration'
require
'action_mailer/test_case'
if
defined?
(
ActionMailer
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录