Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
6943abb3
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,发现更多精彩内容 >>
提交
6943abb3
编写于
10月 14, 2017
作者:
R
Ryuta Kamizono
提交者:
GitHub
10月 14, 2017
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #30887 from bogdanvlviv/use-__dir__-in-activestorage
Use __dir__ in activestorage/
上级
87edd722
19323d3b
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
5 addition
and
5 deletion
+5
-5
activestorage/test/database/setup.rb
activestorage/test/database/setup.rb
+1
-1
activestorage/test/dummy/bin/bundle
activestorage/test/dummy/bin/bundle
+1
-1
activestorage/test/test_helper.rb
activestorage/test/test_helper.rb
+3
-3
未找到文件。
activestorage/test/database/setup.rb
浏览文件 @
6943abb3
...
...
@@ -3,5 +3,5 @@
require_relative
"create_users_migration"
ActiveRecord
::
Base
.
establish_connection
(
adapter:
"sqlite3"
,
database:
":memory:"
)
ActiveRecord
::
Migrator
.
migrate
File
.
expand_path
(
"../../
../db/migrate"
,
__FILE
__
)
ActiveRecord
::
Migrator
.
migrate
File
.
expand_path
(
"../../
db/migrate"
,
__dir
__
)
ActiveStorageCreateUsers
.
migrate
(
:up
)
activestorage/test/dummy/bin/bundle
浏览文件 @
6943abb3
#!/usr/bin/env ruby
# frozen_string_literal: true
ENV
[
"BUNDLE_GEMFILE"
]
||=
File
.
expand_path
(
"../
../Gemfile"
,
__FILE
__
)
ENV
[
"BUNDLE_GEMFILE"
]
||=
File
.
expand_path
(
"../
Gemfile"
,
__dir
__
)
load
Gem
.
bin_path
(
"bundler"
,
"bundle"
)
activestorage/test/test_helper.rb
浏览文件 @
6943abb3
# frozen_string_literal: true
require
File
.
expand_path
(
"../../test/dummy/config/environment.rb"
,
__FILE__
)
require
_relative
"dummy/config/environment.rb"
require
"bundler/setup"
require
"active_support"
...
...
@@ -23,7 +23,7 @@
require
"yaml"
SERVICE_CONFIGURATIONS
=
begin
erb
=
ERB
.
new
(
Pathname
.
new
(
File
.
expand_path
(
"
../service/configurations.yml"
,
__FILE
__
)).
read
)
erb
=
ERB
.
new
(
Pathname
.
new
(
File
.
expand_path
(
"
service/configurations.yml"
,
__dir
__
)).
read
)
configuration
=
YAML
.
load
(
erb
.
result
)
||
{}
configuration
.
deep_symbolize_keys
rescue
Errno
::
ENOENT
...
...
@@ -38,7 +38,7 @@
ActiveStorage
.
verifier
=
ActiveSupport
::
MessageVerifier
.
new
(
"Testing"
)
class
ActiveSupport::TestCase
self
.
file_fixture_path
=
File
.
expand_path
(
"
../fixtures/files"
,
__FILE
__
)
self
.
file_fixture_path
=
File
.
expand_path
(
"
fixtures/files"
,
__dir
__
)
private
def
create_blob
(
data:
"Hello world!"
,
filename:
"hello.txt"
,
content_type:
"text/plain"
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录