Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
80e49354
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,发现更多精彩内容 >>
提交
80e49354
编写于
2月 03, 2010
作者:
M
Mikel Lindsaar
提交者:
Jeremy Kemper
2月 02, 2010
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Updating index.html to remove script/generate and making railties tests pass again
上级
9a83bd50
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
5 addition
and
25 deletion
+5
-25
railties/lib/generators/rails/app/templates/public/index.html
...ties/lib/generators/rails/app/templates/public/index.html
+1
-1
railties/test/generators/app_generator_test.rb
railties/test/generators/app_generator_test.rb
+4
-24
未找到文件。
railties/lib/generators/rails/app/templates/public/index.html
浏览文件 @
80e49354
...
...
@@ -255,7 +255,7 @@
<ol>
<li>
<h2>
Use
<code>
script/
generate
</code>
to create your models and controllers
</h2>
<h2>
Use
<code>
rails
generate
</code>
to create your models and controllers
</h2>
<p>
To see all available options, run it without parameters.
</p>
</li>
...
...
railties/test/generators/app_generator_test.rb
浏览文件 @
80e49354
...
...
@@ -35,7 +35,7 @@ def test_application_skeleton_is_created
public/images
public/javascripts
public/stylesheets
script/
performance
script/
rails
test/fixtures
test/functional
test/integration
...
...
@@ -98,34 +98,14 @@ def test_prototype_and_test_unit_are_skipped_if_required
assert_no_file
"test"
end
def
test_shebang_is_added_to_
files
def
test_shebang_is_added_to_
rails_file
run_generator
[
destination_root
,
"--ruby"
,
"foo/bar/baz"
]
%w(
about
console
dbconsole
destroy
generate
plugin
runner
server
)
.
each
{
|
path
|
assert_file
"script/
#{
path
}
"
,
/#!foo\/bar\/baz/
}
assert_file
"script/rails"
,
/#!foo\/bar\/baz/
end
def
test_shebang_when_is_the_same_as_default_use_env
run_generator
[
destination_root
,
"--ruby"
,
Thor
::
Util
.
ruby_command
]
%w(
about
console
dbconsole
destroy
generate
plugin
runner
server
)
.
each
{
|
path
|
assert_file
"script/
#{
path
}
"
,
/#!\/usr\/bin\/env/
}
assert_file
"script/rails"
,
/#!\/usr\/bin\/env/
end
def
test_template_from_dir_pwd
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录