Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
578618d8
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,发现更多精彩内容 >>
提交
578618d8
编写于
8月 25, 2015
作者:
R
Rafael Mendonça França
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #21366 from amitsuroliya/remove_unused_variable
Remove more unused block arguments
上级
9eb7ee2c
8f0073bb
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
13 addition
and
13 deletion
+13
-13
actionpack/test/controller/resources_test.rb
actionpack/test/controller/resources_test.rb
+12
-12
actionpack/test/dispatch/live_response_test.rb
actionpack/test/dispatch/live_response_test.rb
+1
-1
未找到文件。
actionpack/test/controller/resources_test.rb
浏览文件 @
578618d8
...
...
@@ -149,7 +149,7 @@ def test_with_collection_actions
end
end
assert_restful_named_routes_for
:messages
do
|
options
|
assert_restful_named_routes_for
:messages
do
actions
.
each_key
do
|
action
|
assert_named_route
"/messages/
#{
action
}
"
,
"
#{
action
}
_messages_path"
,
:action
=>
action
end
...
...
@@ -179,7 +179,7 @@ def test_with_collection_actions_and_name_prefix
end
end
assert_restful_named_routes_for
:messages
,
:path_prefix
=>
'threads/1/'
,
:name_prefix
=>
'thread_'
,
:options
=>
{
:thread_id
=>
'1'
}
do
|
options
|
assert_restful_named_routes_for
:messages
,
:path_prefix
=>
'threads/1/'
,
:name_prefix
=>
'thread_'
,
:options
=>
{
:thread_id
=>
'1'
}
do
actions
.
each_key
do
|
action
|
assert_named_route
"/threads/1/messages/
#{
action
}
"
,
"
#{
action
}
_thread_messages_path"
,
:action
=>
action
end
...
...
@@ -206,7 +206,7 @@ def test_with_collection_actions_and_name_prefix_and_member_action_with_same_nam
end
end
assert_restful_named_routes_for
:messages
,
:path_prefix
=>
'threads/1/'
,
:name_prefix
=>
'thread_'
,
:options
=>
{
:thread_id
=>
'1'
}
do
|
options
|
assert_restful_named_routes_for
:messages
,
:path_prefix
=>
'threads/1/'
,
:name_prefix
=>
'thread_'
,
:options
=>
{
:thread_id
=>
'1'
}
do
actions
.
each_key
do
|
action
|
assert_named_route
"/threads/1/messages/
#{
action
}
"
,
"
#{
action
}
_thread_messages_path"
,
:action
=>
action
end
...
...
@@ -236,7 +236,7 @@ def test_with_collection_action_and_name_prefix_and_formatted
end
end
assert_restful_named_routes_for
:messages
,
:path_prefix
=>
'threads/1/'
,
:name_prefix
=>
'thread_'
,
:options
=>
{
:thread_id
=>
'1'
}
do
|
options
|
assert_restful_named_routes_for
:messages
,
:path_prefix
=>
'threads/1/'
,
:name_prefix
=>
'thread_'
,
:options
=>
{
:thread_id
=>
'1'
}
do
actions
.
each_key
do
|
action
|
assert_named_route
"/threads/1/messages/
#{
action
}
.xml"
,
"
#{
action
}
_thread_messages_path"
,
:action
=>
action
,
:format
=>
'xml'
end
...
...
@@ -253,7 +253,7 @@ def test_with_member_action
assert_recognizes
(
options
.
merge
(
mark_options
),
:path
=>
mark_path
,
:method
=>
method
)
end
assert_restful_named_routes_for
:messages
do
|
options
|
assert_restful_named_routes_for
:messages
do
assert_named_route
mark_path
,
:mark_message_path
,
mark_options
end
end
...
...
@@ -278,7 +278,7 @@ def test_member_when_override_paths_for_default_restful_actions_with
assert_recognizes
(
options
.
merge
(
mark_options
),
:path
=>
mark_path
,
:method
=>
method
)
end
assert_restful_named_routes_for
:messages
,
:path_names
=>
{
:new
=>
'nuevo'
}
do
|
options
|
assert_restful_named_routes_for
:messages
,
:path_names
=>
{
:new
=>
'nuevo'
}
do
assert_named_route
mark_path
,
:mark_message_path
,
mark_options
end
end
...
...
@@ -304,7 +304,7 @@ def test_with_two_member_actions_with_same_method
assert_recognizes
(
options
.
merge
(
action_options
),
:path
=>
action_path
,
:method
=>
method
)
end
assert_restful_named_routes_for
:messages
do
|
options
|
assert_restful_named_routes_for
:messages
do
assert_named_route
action_path
,
"
#{
action
}
_message_path"
.
to_sym
,
action_options
end
end
...
...
@@ -351,7 +351,7 @@ def test_with_new_action
assert_recognizes
(
options
.
merge
(
preview_options
),
:path
=>
preview_path
,
:method
=>
:post
)
end
assert_restful_named_routes_for
:messages
do
|
options
|
assert_restful_named_routes_for
:messages
do
assert_named_route
preview_path
,
:preview_new_message_path
,
preview_options
end
end
...
...
@@ -373,7 +373,7 @@ def test_with_new_action_with_name_prefix
assert_recognizes
(
options
.
merge
(
preview_options
),
:path
=>
preview_path
,
:method
=>
:post
)
end
assert_restful_named_routes_for
:messages
,
:path_prefix
=>
'threads/1/'
,
:name_prefix
=>
'thread_'
,
:options
=>
{
:thread_id
=>
'1'
}
do
|
options
|
assert_restful_named_routes_for
:messages
,
:path_prefix
=>
'threads/1/'
,
:name_prefix
=>
'thread_'
,
:options
=>
{
:thread_id
=>
'1'
}
do
assert_named_route
preview_path
,
:preview_new_thread_message_path
,
preview_options
end
end
...
...
@@ -395,7 +395,7 @@ def test_with_formatted_new_action_with_name_prefix
assert_recognizes
(
options
.
merge
(
preview_options
),
:path
=>
preview_path
,
:method
=>
:post
)
end
assert_restful_named_routes_for
:messages
,
:path_prefix
=>
'threads/1/'
,
:name_prefix
=>
'thread_'
,
:options
=>
{
:thread_id
=>
'1'
}
do
|
options
|
assert_restful_named_routes_for
:messages
,
:path_prefix
=>
'threads/1/'
,
:name_prefix
=>
'thread_'
,
:options
=>
{
:thread_id
=>
'1'
}
do
assert_named_route
preview_path
,
:preview_new_thread_message_path
,
preview_options
end
end
...
...
@@ -553,7 +553,7 @@ def test_singleton_resource_with_member_action
assert_recognizes
(
options
.
merge
(
reset_options
),
:path
=>
reset_path
,
:method
=>
method
)
end
assert_singleton_named_routes_for
:account
do
|
options
|
assert_singleton_named_routes_for
:account
do
assert_named_route
reset_path
,
:reset_account_path
,
reset_options
end
end
...
...
@@ -577,7 +577,7 @@ def test_singleton_resource_with_two_member_actions_with_same_method
assert_recognizes
(
options
.
merge
(
action_options
),
:path
=>
action_path
,
:method
=>
method
)
end
assert_singleton_named_routes_for
:account
do
|
options
|
assert_singleton_named_routes_for
:account
do
assert_named_route
action_path
,
"
#{
action
}
_account_path"
.
to_sym
,
action_options
end
end
...
...
actionpack/test/dispatch/live_response_test.rb
浏览文件 @
578618d8
...
...
@@ -65,7 +65,7 @@ def test_headers_cannot_be_written_after_webserver_reads
latch
=
Concurrent
::
CountDownLatch
.
new
t
=
Thread
.
new
{
@response
.
stream
.
each
do
|
chunk
|
@response
.
stream
.
each
do
latch
.
count_down
end
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录