Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
3bc9c357
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,发现更多精彩内容 >>
提交
3bc9c357
编写于
11月 30, 2013
作者:
C
Carlos Antonio da Silva
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #13111 from akshay-vishnoi/typo
Typo fixes [ci skip]
上级
61ad8d5c
e0326f56
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
7 addition
and
7 deletion
+7
-7
actionpack/test/controller/flash_test.rb
actionpack/test/controller/flash_test.rb
+2
-2
activerecord/lib/active_record/connection_adapters/postgresql/oid.rb
...d/lib/active_record/connection_adapters/postgresql/oid.rb
+1
-1
activerecord/test/cases/validations_test.rb
activerecord/test/cases/validations_test.rb
+1
-1
activesupport/lib/active_support/core_ext/array/prepend_and_append.rb
...t/lib/active_support/core_ext/array/prepend_and_append.rb
+2
-2
railties/test/railties/engine_test.rb
railties/test/railties/engine_test.rb
+1
-1
未找到文件。
actionpack/test/controller/flash_test.rb
浏览文件 @
3bc9c357
...
...
@@ -174,12 +174,12 @@ def test_keep_and_discard_return_values
flash
.
update
(
:foo
=>
:foo_indeed
,
:bar
=>
:bar_indeed
)
assert_equal
(
:foo_indeed
,
flash
.
discard
(
:foo
))
# valid key passed
assert_nil
flash
.
discard
(
:unknown
)
# non exist
a
nt key passed
assert_nil
flash
.
discard
(
:unknown
)
# non exist
e
nt key passed
assert_equal
({
:foo
=>
:foo_indeed
,
:bar
=>
:bar_indeed
},
flash
.
discard
().
to_hash
)
# nothing passed
assert_equal
({
:foo
=>
:foo_indeed
,
:bar
=>
:bar_indeed
},
flash
.
discard
(
nil
).
to_hash
)
# nothing passed
assert_equal
(
:foo_indeed
,
flash
.
keep
(
:foo
))
# valid key passed
assert_nil
flash
.
keep
(
:unknown
)
# non exist
a
nt key passed
assert_nil
flash
.
keep
(
:unknown
)
# non exist
e
nt key passed
assert_equal
({
:foo
=>
:foo_indeed
,
:bar
=>
:bar_indeed
},
flash
.
keep
().
to_hash
)
# nothing passed
assert_equal
({
:foo
=>
:foo_indeed
,
:bar
=>
:bar_indeed
},
flash
.
keep
(
nil
).
to_hash
)
# nothing passed
end
...
...
activerecord/lib/active_record/connection_adapters/postgresql/oid.rb
浏览文件 @
3bc9c357
...
...
@@ -311,7 +311,7 @@ def fetch(ftype, fmod)
h
[
k
]
=
OID
::
Identity
.
new
}
# Register an OID type named +name+ with a typcasting object in
# Register an OID type named +name+ with a typ
e
casting object in
# +type+. +name+ should correspond to the `typname` column in
# the `pg_type` table.
def
self
.
register_type
(
name
,
type
)
...
...
activerecord/test/cases/validations_test.rb
浏览文件 @
3bc9c357
...
...
@@ -93,7 +93,7 @@ def test_create_without_validation
assert
reply
.
save
(
:validate
=>
false
)
end
def
test_validates_acceptance_of_with_non_exist
a
nt_table
def
test_validates_acceptance_of_with_non_exist
e
nt_table
Object
.
const_set
:IncorporealModel
,
Class
.
new
(
ActiveRecord
::
Base
)
assert_nothing_raised
ActiveRecord
::
StatementInvalid
do
...
...
activesupport/lib/active_support/core_ext/array/prepend_and_append.rb
浏览文件 @
3bc9c357
class
Array
# The human way of thinking about adding stuff to the end of a list is with append
# The human way of thinking about adding stuff to the end of a list is with append
.
alias_method
:append
,
:<<
# The human way of thinking about adding stuff to the beginning of a list is with prepend
# The human way of thinking about adding stuff to the beginning of a list is with prepend
.
alias_method
:prepend
,
:unshift
end
\ No newline at end of file
railties/test/railties/engine_test.rb
浏览文件 @
3bc9c357
...
...
@@ -399,7 +399,7 @@ def index
assert
$plugin_initializer
end
test
"midleware referenced in configuration"
do
test
"mid
d
leware referenced in configuration"
do
@plugin
.
write
"lib/bukkits.rb"
,
<<-
RUBY
class Bukkits
def initialize(app)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录