Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
3fe6a5d5
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,体验更适合开发者的 AI 搜索 >>
提交
3fe6a5d5
编写于
12月 23, 2016
作者:
A
Akira Matsuda
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Privatize unneededly protected methods in Active Support tests
上级
10fb7211
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
8 addition
and
8 deletion
+8
-8
activesupport/test/descendants_tracker_test_cases.rb
activesupport/test/descendants_tracker_test_cases.rb
+1
-1
activesupport/test/json/encoding_test.rb
activesupport/test/json/encoding_test.rb
+1
-1
activesupport/test/multibyte_conformance_test.rb
activesupport/test/multibyte_conformance_test.rb
+1
-1
activesupport/test/multibyte_grapheme_break_conformance_test.rb
...support/test/multibyte_grapheme_break_conformance_test.rb
+1
-1
activesupport/test/multibyte_normalization_conformance_test.rb
...esupport/test/multibyte_normalization_conformance_test.rb
+1
-1
activesupport/test/notifications_test.rb
activesupport/test/notifications_test.rb
+1
-1
activesupport/test/test_case_test.rb
activesupport/test/test_case_test.rb
+2
-2
未找到文件。
activesupport/test/descendants_tracker_test_cases.rb
浏览文件 @
3fe6a5d5
...
...
@@ -40,7 +40,7 @@ def test_clear
end
end
pr
otected
pr
ivate
def
assert_equal_sets
(
expected
,
actual
)
assert_equal
Set
.
new
(
expected
),
Set
.
new
(
actual
)
...
...
activesupport/test/json/encoding_test.rb
浏览文件 @
3fe6a5d5
...
...
@@ -452,7 +452,7 @@ def test_to_json_works_when_as_json_returns_NaN_number
assert_equal
'{"number":null}'
,
NaNNumber
.
new
.
to_json
end
pr
otected
pr
ivate
def
object_keys
(
json_object
)
json_object
[
1
..-
2
].
scan
(
/([^{}:,\s]+):/
).
flatten
.
sort
...
...
activesupport/test/multibyte_conformance_test.rb
浏览文件 @
3fe6a5d5
...
...
@@ -82,7 +82,7 @@ def test_normalizations_KD
end
end
pr
otected
pr
ivate
def
each_line_of_norm_tests
(
&
block
)
File
.
open
(
File
.
join
(
CACHE_DIR
,
UNIDATA_FILE
),
"r"
)
do
|
f
|
until
f
.
eof?
...
...
activesupport/test/multibyte_grapheme_break_conformance_test.rb
浏览文件 @
3fe6a5d5
...
...
@@ -28,7 +28,7 @@ def test_breaks
end
end
pr
otected
pr
ivate
def
each_line_of_break_tests
(
&
block
)
lines
=
0
max_test_lines
=
0
# Don't limit below 21, because that's the header of the testfile
...
...
activesupport/test/multibyte_normalization_conformance_test.rb
浏览文件 @
3fe6a5d5
...
...
@@ -83,7 +83,7 @@ def test_normalizations_KD
end
end
pr
otected
pr
ivate
def
each_line_of_norm_tests
(
&
block
)
lines
=
0
max_test_lines
=
0
# Don't limit below 38, because that's the header of the testfile
...
...
activesupport/test/notifications_test.rb
浏览文件 @
3fe6a5d5
...
...
@@ -273,7 +273,7 @@ def test_event_is_parent_based_on_children
assert
!
not_child
.
parent_of?
(
parent
)
end
pr
otected
pr
ivate
def
random_id
@random_id
||=
SecureRandom
.
hex
(
10
)
end
...
...
activesupport/test/test_case_test.rb
浏览文件 @
3fe6a5d5
...
...
@@ -257,7 +257,7 @@ def setup
def
teardown
end
pr
otected
pr
ivate
def
reset_callback_record
@called_back
=
[]
...
...
@@ -282,7 +282,7 @@ def test_inherited_setup_callbacks
assert_equal
[
:foo
,
:sentinel
,
:bar
],
self
.
class
.
_teardown_callbacks
.
map
(
&
:raw_filter
)
end
pr
otected
pr
ivate
def
bar
@called_back
<<
:bar
end
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录