Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
a74fbb29
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,发现更多精彩内容 >>
提交
a74fbb29
编写于
7月 28, 2015
作者:
R
Robin Dupret
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add `:nodoc:` for internal testing methods [ci skip]
上级
32b0db26
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
9 addition
and
9 deletion
+9
-9
actionpack/lib/action_dispatch/testing/integration.rb
actionpack/lib/action_dispatch/testing/integration.rb
+1
-1
activejob/lib/active_job/test_helper.rb
activejob/lib/active_job/test_helper.rb
+2
-2
activerecord/lib/active_record/fixtures.rb
activerecord/lib/active_record/fixtures.rb
+2
-2
activesupport/lib/active_support/log_subscriber/test_helper.rb
...esupport/lib/active_support/log_subscriber/test_helper.rb
+2
-2
railties/lib/rails/test_help.rb
railties/lib/rails/test_help.rb
+2
-2
未找到文件。
actionpack/lib/action_dispatch/testing/integration.rb
浏览文件 @
a74fbb29
...
...
@@ -391,7 +391,7 @@ module Runner
attr_reader
:app
def
before_setup
def
before_setup
# :nodoc:
@app
=
nil
@integration_session
=
nil
super
...
...
activejob/lib/active_job/test_helper.rb
浏览文件 @
a74fbb29
...
...
@@ -7,7 +7,7 @@ module TestHelper
extend
ActiveSupport
::
Concern
included
do
def
before_setup
def
before_setup
# :nodoc:
test_adapter
=
ActiveJob
::
QueueAdapters
::
TestAdapter
.
new
@old_queue_adapters
=
(
ActiveJob
::
Base
.
subclasses
<<
ActiveJob
::
Base
).
select
do
|
klass
|
...
...
@@ -24,7 +24,7 @@ def before_setup
super
end
def
after_teardown
def
after_teardown
# :nodoc:
super
@old_queue_adapters
.
each
do
|
(
klass
,
adapter
)
|
klass
.
queue_adapter
=
adapter
...
...
activerecord/lib/active_record/fixtures.rb
浏览文件 @
a74fbb29
...
...
@@ -827,12 +827,12 @@ module ActiveRecord
module
TestFixtures
extend
ActiveSupport
::
Concern
def
before_setup
def
before_setup
# :nodoc:
setup_fixtures
super
end
def
after_teardown
def
after_teardown
# :nodoc:
super
teardown_fixtures
end
...
...
activesupport/lib/active_support/log_subscriber/test_helper.rb
浏览文件 @
a74fbb29
...
...
@@ -33,7 +33,7 @@ class LogSubscriber
# you can collect them doing @logger.logged(level), where level is the level
# used in logging, like info, debug, warn and so on.
module
TestHelper
def
setup
def
setup
# :nodoc:
@logger
=
MockLogger
.
new
@notifier
=
ActiveSupport
::
Notifications
::
Fanout
.
new
...
...
@@ -44,7 +44,7 @@ def setup
ActiveSupport
::
Notifications
.
notifier
=
@notifier
end
def
teardown
def
teardown
# :nodoc:
set_logger
(
nil
)
ActiveSupport
::
Notifications
.
notifier
=
@old_notifier
end
...
...
railties/lib/rails/test_help.rb
浏览文件 @
a74fbb29
...
...
@@ -28,14 +28,14 @@ def create_fixtures(*fixture_set_names, &block)
end
class
ActionController::TestCase
def
before_setup
def
before_setup
# :nodoc:
@routes
=
Rails
.
application
.
routes
super
end
end
class
ActionDispatch::IntegrationTest
def
before_setup
def
before_setup
# :nodoc:
@routes
=
Rails
.
application
.
routes
super
end
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录