Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
df21d1ea
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,发现更多精彩内容 >>
提交
df21d1ea
编写于
3月 15, 2013
作者:
C
Carlos Antonio da Silva
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #9728 from vipulnsward/fix_em_typos
Small typos here and there.
上级
962604f4
29dcf096
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
5 addition
and
5 deletion
+5
-5
activemodel/CHANGELOG.md
activemodel/CHANGELOG.md
+1
-1
activemodel/test/cases/attribute_methods_test.rb
activemodel/test/cases/attribute_methods_test.rb
+1
-1
activemodel/test/cases/naming_test.rb
activemodel/test/cases/naming_test.rb
+1
-1
activemodel/test/cases/validations_test.rb
activemodel/test/cases/validations_test.rb
+2
-2
未找到文件。
activemodel/CHANGELOG.md
浏览文件 @
df21d1ea
...
...
@@ -111,7 +111,7 @@
*
Changed
`ActiveModel::Serializers::Xml::Serializer#add_associations`
to by default
propagate
`:skip_types, :dasherize, :camelize`
keys to included associations.
It can be overriden on each association by explicitly specifying the option on one
It can be overrid
d
en on each association by explicitly specifying the option on one
or more associations
*Anthony Alberto*
...
...
activemodel/test/cases/attribute_methods_test.rb
浏览文件 @
df21d1ea
...
...
@@ -194,7 +194,7 @@ def foo
assert_raises
(
NoMethodError
)
{
ModelWithAttributes
.
new
.
foo
}
end
test
'acessing a suffixed attribute'
do
test
'ac
c
essing a suffixed attribute'
do
m
=
ModelWithAttributes2
.
new
m
.
attributes
=
{
'foo'
=>
'bar'
}
...
...
activemodel/test/cases/naming_test.rb
浏览文件 @
df21d1ea
...
...
@@ -245,7 +245,7 @@ def test_param_key_for_class
end
def
test_uncountable
assert
uncountable?
(
@uncountable
),
"Expected 'sheep' to be uncoutable"
assert
uncountable?
(
@uncountable
),
"Expected 'sheep' to be uncou
n
table"
assert
!
uncountable?
(
@klass
),
"Expected 'contact' to be countable"
end
...
...
activemodel/test/cases/validations_test.rb
浏览文件 @
df21d1ea
...
...
@@ -213,7 +213,7 @@ def test_validation_order
assert_equal
'is too short (minimum is 2 characters)'
,
t
.
errors
[
key
][
0
]
end
def
test_validaton_with_if_and_on
def
test_validat
i
on_with_if_and_on
Topic
.
validates_presence_of
:title
,
:if
=>
Proc
.
new
{
|
x
|
x
.
author_name
=
"bad"
;
true
},
:on
=>
:update
t
=
Topic
.
new
(
:title
=>
""
)
...
...
@@ -361,7 +361,7 @@ def test_does_not_modify_options_argument
def
test_dup_validity_is_independent
Topic
.
validates_presence_of
:title
topic
=
Topic
.
new
(
"title"
=>
"Lit
t
erature"
)
topic
=
Topic
.
new
(
"title"
=>
"Literature"
)
topic
.
valid?
duped
=
topic
.
dup
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录