Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
a837b30f
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,发现更多精彩内容 >>
提交
a837b30f
编写于
4月 24, 2012
作者:
J
Jose and Yehuda
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Clean up some straggling build failures
上级
56cdc81c
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
10 addition
and
10 deletion
+10
-10
actionmailer/test/i18n_with_controller_test.rb
actionmailer/test/i18n_with_controller_test.rb
+1
-1
actionmailer/test/url_test.rb
actionmailer/test/url_test.rb
+2
-2
railties/test/application/route_inspect_test.rb
railties/test/application/route_inspect_test.rb
+7
-7
未找到文件。
actionmailer/test/i18n_with_controller_test.rb
浏览文件 @
a837b30f
...
...
@@ -24,7 +24,7 @@ def send_mail
class
ActionMailerI18nWithControllerTest
<
ActionDispatch
::
IntegrationTest
Routes
=
ActionDispatch
::
Routing
::
RouteSet
.
new
Routes
.
draw
do
match
':controller(/:action(/:id))'
get
':controller(/:action(/:id))'
end
def
app
...
...
actionmailer/test/url_test.rb
浏览文件 @
a837b30f
...
...
@@ -57,8 +57,8 @@ def test_signed_up_with_url
UrlTestMailer
.
delivery_method
=
:test
AppRoutes
.
draw
do
match
':controller(/:action(/:id))'
match
'/welcome'
=>
"foo#bar"
,
:as
=>
"welcome"
get
':controller(/:action(/:id))'
get
'/welcome'
=>
"foo#bar"
,
:as
=>
"welcome"
end
expected
=
new_mail
...
...
railties/test/application/route_inspect_test.rb
浏览文件 @
a837b30f
...
...
@@ -78,7 +78,7 @@ def test_inspect_routes_shows_root_route
root
:to
=>
'pages#main'
end
output
=
@inspector
.
format
@set
.
routes
assert_equal
[
"root / pages#main"
],
output
assert_equal
[
"root
GET
/ pages#main"
],
output
end
def
test_inspect_routes_shows_dynamic_action_route
...
...
@@ -86,7 +86,7 @@ def test_inspect_routes_shows_dynamic_action_route
get
'api/:action'
=>
'api'
end
output
=
@inspector
.
format
@set
.
routes
assert_equal
[
" /api/:action(.:format) api#:action"
],
output
assert_equal
[
"
GET
/api/:action(.:format) api#:action"
],
output
end
def
test_inspect_routes_shows_controller_and_action_only_route
...
...
@@ -94,7 +94,7 @@ def test_inspect_routes_shows_controller_and_action_only_route
get
':controller/:action'
end
output
=
@inspector
.
format
@set
.
routes
assert_equal
[
" /:controller/:action(.:format) :controller#:action"
],
output
assert_equal
[
"
GET
/:controller/:action(.:format) :controller#:action"
],
output
end
def
test_inspect_routes_shows_controller_and_action_route_with_constraints
...
...
@@ -102,7 +102,7 @@ def test_inspect_routes_shows_controller_and_action_route_with_constraints
get
':controller(/:action(/:id))'
,
:id
=>
/\d+/
end
output
=
@inspector
.
format
@set
.
routes
assert_equal
[
" /:controller(/:action(/:id))(.:format) :controller#:action {:id=>/
\\
d+/}"
],
output
assert_equal
[
"
GET
/:controller(/:action(/:id))(.:format) :controller#:action {:id=>/
\\
d+/}"
],
output
end
def
test_rake_routes_shows_route_with_defaults
...
...
@@ -110,7 +110,7 @@ def test_rake_routes_shows_route_with_defaults
get
'photos/:id'
=>
'photos#show'
,
:defaults
=>
{
:format
=>
'jpg'
}
end
output
=
@inspector
.
format
@set
.
routes
assert_equal
[
%Q[ /photos/:id(.:format) photos#show {:format=>"jpg"}]
],
output
assert_equal
[
%Q[
GET
/photos/:id(.:format) photos#show {:format=>"jpg"}]
],
output
end
def
test_rake_routes_shows_route_with_constraints
...
...
@@ -118,7 +118,7 @@ def test_rake_routes_shows_route_with_constraints
get
'photos/:id'
=>
'photos#show'
,
:id
=>
/[A-Z]\d{5}/
end
output
=
@inspector
.
format
@set
.
routes
assert_equal
[
" /photos/:id(.:format) photos#show {:id=>/[A-Z]
\\
d{5}/}"
],
output
assert_equal
[
"
GET
/photos/:id(.:format) photos#show {:id=>/[A-Z]
\\
d{5}/}"
],
output
end
class
RackApp
...
...
@@ -131,7 +131,7 @@ def test_rake_routes_shows_route_with_rack_app
get
'foo/:id'
=>
RackApp
,
:id
=>
/[A-Z]\d{5}/
end
output
=
@inspector
.
format
@set
.
routes
assert_equal
[
" /foo/:id(.:format)
#{
RackApp
.
name
}
{:id=>/[A-Z]
\\
d{5}/}"
],
output
assert_equal
[
"
GET
/foo/:id(.:format)
#{
RackApp
.
name
}
{:id=>/[A-Z]
\\
d{5}/}"
],
output
end
def
test_rake_routes_shows_route_with_rack_app_nested_with_dynamic_constraints
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录