Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
36360e9b
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,发现更多精彩内容 >>
提交
36360e9b
编写于
10月 12, 2012
作者:
J
José Valim
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #7917 from dfens/master
Cosmetic changes: remove trailing whitespaces from tests
上级
fc5a3e94
ab9140ff
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
8 addition
and
8 deletion
+8
-8
actionpack/test/controller/parameters/parameters_permit_test.rb
...pack/test/controller/parameters/parameters_permit_test.rb
+1
-1
activemodel/test/cases/secure_password_test.rb
activemodel/test/cases/secure_password_test.rb
+1
-1
activerecord/test/cases/adapters/postgresql/schema_test.rb
activerecord/test/cases/adapters/postgresql/schema_test.rb
+1
-1
activerecord/test/cases/adapters/sqlite3/copy_table_test.rb
activerecord/test/cases/adapters/sqlite3/copy_table_test.rb
+1
-1
activerecord/test/cases/migration/change_schema_test.rb
activerecord/test/cases/migration/change_schema_test.rb
+1
-1
activerecord/test/cases/query_cache_test.rb
activerecord/test/cases/query_cache_test.rb
+1
-1
activerecord/test/cases/validations/i18n_generate_message_validation_test.rb
...ases/validations/i18n_generate_message_validation_test.rb
+1
-1
activesupport/test/callbacks_test.rb
activesupport/test/callbacks_test.rb
+1
-1
未找到文件。
actionpack/test/controller/parameters/parameters_permit_test.rb
浏览文件 @
36360e9b
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
class
ParametersPermitTest
<
ActiveSupport
::
TestCase
class
ParametersPermitTest
<
ActiveSupport
::
TestCase
setup
do
setup
do
@params
=
ActionController
::
Parameters
.
new
({
person:
{
@params
=
ActionController
::
Parameters
.
new
({
person:
{
age:
"32"
,
name:
{
first:
"David"
,
last:
"Heinemeier Hansson"
}
age:
"32"
,
name:
{
first:
"David"
,
last:
"Heinemeier Hansson"
}
}})
}})
end
end
...
...
activemodel/test/cases/secure_password_test.rb
浏览文件 @
36360e9b
...
@@ -55,7 +55,7 @@ class SecurePasswordTest < ActiveModel::TestCase
...
@@ -55,7 +55,7 @@ class SecurePasswordTest < ActiveModel::TestCase
end
end
test
"User should not be created with blank digest"
do
test
"User should not be created with blank digest"
do
assert_raise
RuntimeError
do
assert_raise
RuntimeError
do
@user
.
run_callbacks
:create
@user
.
run_callbacks
:create
end
end
@user
.
password
=
"supersecretpassword"
@user
.
password
=
"supersecretpassword"
...
...
activerecord/test/cases/adapters/postgresql/schema_test.rb
浏览文件 @
36360e9b
...
@@ -97,7 +97,7 @@ def test_raise_create_schema_with_existing_schema
...
@@ -97,7 +97,7 @@ def test_raise_create_schema_with_existing_schema
def
test_drop_schema
def
test_drop_schema
begin
begin
@connection
.
create_schema
"test_schema3"
@connection
.
create_schema
"test_schema3"
ensure
ensure
@connection
.
drop_schema
"test_schema3"
@connection
.
drop_schema
"test_schema3"
end
end
...
...
activerecord/test/cases/adapters/sqlite3/copy_table_test.rb
浏览文件 @
36360e9b
...
@@ -59,7 +59,7 @@ def test_copy_table_with_id_col_that_is_not_primary_key
...
@@ -59,7 +59,7 @@ def test_copy_table_with_id_col_that_is_not_primary_key
def
test_copy_table_with_unconventional_primary_key
def
test_copy_table_with_unconventional_primary_key
test_copy_table
(
'owners'
,
'owners_unconventional'
)
do
|
from
,
to
,
options
|
test_copy_table
(
'owners'
,
'owners_unconventional'
)
do
|
from
,
to
,
options
|
original_pk
=
@connection
.
primary_key
(
'owners'
)
original_pk
=
@connection
.
primary_key
(
'owners'
)
copied_pk
=
@connection
.
primary_key
(
'owners_unconventional'
)
copied_pk
=
@connection
.
primary_key
(
'owners_unconventional'
)
assert_equal
original_pk
,
copied_pk
assert_equal
original_pk
,
copied_pk
end
end
...
...
activerecord/test/cases/migration/change_schema_test.rb
浏览文件 @
36360e9b
...
@@ -293,7 +293,7 @@ def test_column_exists_with_definition
...
@@ -293,7 +293,7 @@ def test_column_exists_with_definition
connection
.
create_table
:testings
do
|
t
|
connection
.
create_table
:testings
do
|
t
|
t
.
column
:foo
,
:string
,
limit:
100
t
.
column
:foo
,
:string
,
limit:
100
t
.
column
:bar
,
:decimal
,
precision:
8
,
scale:
2
t
.
column
:bar
,
:decimal
,
precision:
8
,
scale:
2
t
.
column
:taggable_id
,
:integer
,
null:
false
t
.
column
:taggable_id
,
:integer
,
null:
false
t
.
column
:taggable_type
,
:string
,
default:
'Photo'
t
.
column
:taggable_type
,
:string
,
default:
'Photo'
end
end
...
...
activerecord/test/cases/query_cache_test.rb
浏览文件 @
36360e9b
...
@@ -48,7 +48,7 @@ def test_exceptional_middleware_assigns_original_connection_id_on_error
...
@@ -48,7 +48,7 @@ def test_exceptional_middleware_assigns_original_connection_id_on_error
}
}
assert_raises
(
RuntimeError
)
{
mw
.
call
({})
}
assert_raises
(
RuntimeError
)
{
mw
.
call
({})
}
assert_equal
connection_id
,
ActiveRecord
::
Base
.
connection_id
assert_equal
connection_id
,
ActiveRecord
::
Base
.
connection_id
end
end
def
test_middleware_delegates
def
test_middleware_delegates
...
...
activerecord/test/cases/validations/i18n_generate_message_validation_test.rb
浏览文件 @
36360e9b
...
@@ -13,7 +13,7 @@ def reset_i18n_load_path
...
@@ -13,7 +13,7 @@ def reset_i18n_load_path
I18n
.
load_path
.
clear
I18n
.
load_path
.
clear
I18n
.
backend
=
I18n
::
Backend
::
Simple
.
new
I18n
.
backend
=
I18n
::
Backend
::
Simple
.
new
yield
yield
ensure
ensure
I18n
.
load_path
.
replace
@old_load_path
I18n
.
load_path
.
replace
@old_load_path
I18n
.
backend
=
@old_backend
I18n
.
backend
=
@old_backend
end
end
...
...
activesupport/test/callbacks_test.rb
浏览文件 @
36360e9b
...
@@ -120,7 +120,7 @@ def dispatch
...
@@ -120,7 +120,7 @@ def dispatch
end
end
class
Child
<
ParentController
class
Child
<
ParentController
skip_callback
:dispatch
,
:before
,
:log
,
:if
=>
proc
{
|
c
|
c
.
action_name
==
:update
}
skip_callback
:dispatch
,
:before
,
:log
,
:if
=>
proc
{
|
c
|
c
.
action_name
==
:update
}
skip_callback
:dispatch
,
:after
,
:log2
skip_callback
:dispatch
,
:after
,
:log2
end
end
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录