Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
da589fcc
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,发现更多精彩内容 >>
提交
da589fcc
编写于
8月 08, 2017
作者:
R
Rafael França
提交者:
GitHub
8月 08, 2017
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #30091 from yhirano55/fix_engine_command
Fix engine command
上级
9d3e98d8
02499892
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
6 addition
and
0 deletion
+6
-0
railties/lib/rails/generators/rails/plugin/templates/bin/rails.tt
.../lib/rails/generators/rails/plugin/templates/bin/rails.tt
+2
-0
railties/test/generators/plugin_generator_test.rb
railties/test/generators/plugin_generator_test.rb
+4
-0
未找到文件。
railties/lib/rails/generators/rails/plugin/templates/bin/rails.tt
浏览文件 @
da589fcc
...
...
@@ -3,7 +3,9 @@
ENGINE_ROOT = File.expand_path('..', __dir__)
ENGINE_PATH = File.expand_path('../lib/<%= namespaced_name -%>/engine', __dir__)
<% if with_dummy_app? -%>
APP_PATH = File.expand_path('../<%= dummy_path -%>/config/application', __dir__)
<% end -%>
# Set up gems listed in the Gemfile.
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
...
...
railties/test/generators/plugin_generator_test.rb
浏览文件 @
da589fcc
...
...
@@ -101,6 +101,9 @@ def test_generating_test_files_in_full_mode_without_unit_test_files
assert_file
"Rakefile"
do
|
contents
|
assert_no_match
(
/APP_RAKEFILE/
,
contents
)
end
assert_file
"bin/rails"
do
|
contents
|
assert_no_match
(
/APP_PATH/
,
contents
)
end
end
def
test_generating_adds_dummy_app_in_full_mode_without_sprockets
...
...
@@ -114,6 +117,7 @@ def test_generating_adds_dummy_app_in_full_mode_without_sprockets
def
test_generating_adds_dummy_app_rake_tasks_without_unit_test_files
run_generator
[
destination_root
,
"-T"
,
"--mountable"
,
"--dummy-path"
,
"my_dummy_app"
]
assert_file
"Rakefile"
,
/APP_RAKEFILE/
assert_file
"bin/rails"
,
/APP_PATH/
end
def
test_generating_adds_dummy_app_without_javascript_and_assets_deps
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录