Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
15c30858
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,发现更多精彩内容 >>
提交
15c30858
编写于
3月 01, 2016
作者:
A
Arthur Nogueira Neves
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #23932 from arthurnn/arthurnn/remove_load_paths
Remove load_paths file
上级
8e3790c1
2abcdfd9
变更
15
隐藏空白更改
内联
并排
Showing
15 changed file
with
5 addition
and
43 deletion
+5
-43
actioncable/test/test_helper.rb
actioncable/test/test_helper.rb
+0
-3
actionmailer/test/abstract_unit.rb
actionmailer/test/abstract_unit.rb
+0
-1
actionpack/test/abstract_unit.rb
actionpack/test/abstract_unit.rb
+0
-2
actionview/test/abstract_unit.rb
actionview/test/abstract_unit.rb
+0
-2
activejob/test/helper.rb
activejob/test/helper.rb
+0
-2
activemodel/test/cases/helper.rb
activemodel/test/cases/helper.rb
+0
-2
activerecord/examples/performance.rb
activerecord/examples/performance.rb
+0
-1
activerecord/examples/simple.rb
activerecord/examples/simple.rb
+0
-1
activerecord/test/cases/helper.rb
activerecord/test/cases/helper.rb
+0
-2
activesupport/test/abstract_unit.rb
activesupport/test/abstract_unit.rb
+0
-7
load_paths.rb
load_paths.rb
+0
-3
railties/test/abstract_unit.rb
railties/test/abstract_unit.rb
+0
-2
railties/test/isolation/abstract_unit.rb
railties/test/isolation/abstract_unit.rb
+1
-9
railties/test/railties/generators_test.rb
railties/test/railties/generators_test.rb
+1
-5
tools/console
tools/console
+3
-1
未找到文件。
actioncable/test/test_helper.rb
浏览文件 @
15c30858
require
File
.
expand_path
(
'../../../load_paths'
,
__FILE__
)
require
'action_cable'
require
'active_support/testing/autorun'
require
'puma'
require
'mocha/setup'
...
...
actionmailer/test/abstract_unit.rb
浏览文件 @
15c30858
require
File
.
expand_path
(
'../../../load_paths'
,
__FILE__
)
require
'active_support/core_ext/kernel/reporting'
# These are the normal settings that will be set up by Railties
...
...
actionpack/test/abstract_unit.rb
浏览文件 @
15c30858
require
File
.
expand_path
(
'../../../load_paths'
,
__FILE__
)
$:
.
unshift
(
File
.
dirname
(
__FILE__
)
+
'/lib'
)
$:
.
unshift
(
File
.
dirname
(
__FILE__
)
+
'/fixtures/helpers'
)
$:
.
unshift
(
File
.
dirname
(
__FILE__
)
+
'/fixtures/alternate_helpers'
)
...
...
actionview/test/abstract_unit.rb
浏览文件 @
15c30858
require
File
.
expand_path
(
'../../../load_paths'
,
__FILE__
)
$:
.
unshift
(
File
.
dirname
(
__FILE__
)
+
'/lib'
)
$:
.
unshift
(
File
.
dirname
(
__FILE__
)
+
'/fixtures/helpers'
)
$:
.
unshift
(
File
.
dirname
(
__FILE__
)
+
'/fixtures/alternate_helpers'
)
...
...
activejob/test/helper.rb
浏览文件 @
15c30858
require
File
.
expand_path
(
'../../../load_paths'
,
__FILE__
)
require
'active_job'
require
'support/job_buffer'
...
...
activemodel/test/cases/helper.rb
浏览文件 @
15c30858
require
File
.
expand_path
(
'../../../../load_paths'
,
__FILE__
)
require
'active_model'
require
'active_support/core_ext/string/access'
...
...
activerecord/examples/performance.rb
浏览文件 @
15c30858
require
File
.
expand_path
(
'../../../load_paths'
,
__FILE__
)
require
"active_record"
require
'benchmark/ips'
...
...
activerecord/examples/simple.rb
浏览文件 @
15c30858
require
File
.
expand_path
(
'../../../load_paths'
,
__FILE__
)
require
'active_record'
class
Person
<
ActiveRecord
::
Base
...
...
activerecord/test/cases/helper.rb
浏览文件 @
15c30858
require
File
.
expand_path
(
'../../../../load_paths'
,
__FILE__
)
require
'config'
require
'active_support/testing/autorun'
...
...
activesupport/test/abstract_unit.rb
浏览文件 @
15c30858
ORIG_ARGV
=
ARGV
.
dup
begin
old
,
$VERBOSE
=
$VERBOSE
,
nil
require
File
.
expand_path
(
'../../../load_paths'
,
__FILE__
)
ensure
$VERBOSE
=
old
end
require
'active_support/core_ext/kernel/reporting'
silence_warnings
do
...
...
load_paths.rb
已删除
100644 → 0
浏览文件 @
8e3790c1
# bust gem prelude
require
'bundler'
Bundler
.
setup
railties/test/abstract_unit.rb
浏览文件 @
15c30858
ENV
[
"RAILS_ENV"
]
||=
"test"
require
File
.
expand_path
(
"../../../load_paths"
,
__FILE__
)
require
'stringio'
require
'active_support/testing/autorun'
require
'active_support/testing/stream'
...
...
railties/test/isolation/abstract_unit.rb
浏览文件 @
15c30858
...
...
@@ -311,10 +311,6 @@ def use_frameworks(arr)
end
def
boot_rails
# FIXME: shush Sass warning spam, not relevant to testing Railties
Kernel
.
silence_warnings
do
require
File
.
expand_path
(
'../../../../load_paths'
,
__FILE__
)
end
end
end
end
...
...
@@ -336,12 +332,8 @@ class ActiveSupport::TestCase
FileUtils
.
rm_rf
(
app_template_path
)
FileUtils
.
mkdir
(
app_template_path
)
environment
=
File
.
expand_path
(
'../../../../load_paths'
,
__FILE__
)
require_environment
=
"-r
#{
environment
}
"
`
#{
Gem
.
ruby
}
#{
require_environment
}
#{
RAILS_FRAMEWORK_ROOT
}
/railties/exe/rails new
#{
app_template_path
}
--skip-gemfile --skip-listen --no-rc`
`
#{
Gem
.
ruby
}
#{
RAILS_FRAMEWORK_ROOT
}
/railties/exe/rails new
#{
app_template_path
}
--skip-gemfile --skip-listen --no-rc`
File
.
open
(
"
#{
app_template_path
}
/config/boot.rb"
,
'w'
)
do
|
f
|
f
.
puts
"require '
#{
environment
}
'"
f
.
puts
"require 'rails/all'"
end
end
unless
defined?
(
RAILS_ISOLATED_ENGINE
)
railties/test/railties/generators_test.rb
浏览文件 @
15c30858
...
...
@@ -26,11 +26,7 @@ def bundled_rails(cmd)
end
def
rails
(
cmd
)
environment
=
File
.
expand_path
(
'../../../../load_paths'
,
__FILE__
)
if
File
.
exist?
(
"
#{
environment
}
.rb"
)
require_environment
=
"-r
#{
environment
}
"
end
`
#{
Gem
.
ruby
}
#{
require_environment
}
#{
RAILS_FRAMEWORK_ROOT
}
/railties/exe/rails
#{
cmd
}
`
`
#{
Gem
.
ruby
}
#{
RAILS_FRAMEWORK_ROOT
}
/railties/exe/rails
#{
cmd
}
`
end
def
build_engine
(
is_mountable
=
false
)
...
...
tools/console
浏览文件 @
15c30858
#!/usr/bin/env ruby
require
File
.
expand_path
(
'../../load_paths'
,
__FILE__
)
require
'bundler'
Bundler
.
setup
require
'rails/all'
require
'active_support/all'
require
'irb'
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录