提交 80e49354 编写于 作者: M Mikel Lindsaar 提交者: Jeremy Kemper

Updating index.html to remove script/generate and making railties tests pass again

上级 9a83bd50
...@@ -255,7 +255,7 @@ ...@@ -255,7 +255,7 @@
<ol> <ol>
<li> <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> <p>To see all available options, run it without parameters.</p>
</li> </li>
......
...@@ -35,7 +35,7 @@ def test_application_skeleton_is_created ...@@ -35,7 +35,7 @@ def test_application_skeleton_is_created
public/images public/images
public/javascripts public/javascripts
public/stylesheets public/stylesheets
script/performance script/rails
test/fixtures test/fixtures
test/functional test/functional
test/integration test/integration
...@@ -98,34 +98,14 @@ def test_prototype_and_test_unit_are_skipped_if_required ...@@ -98,34 +98,14 @@ def test_prototype_and_test_unit_are_skipped_if_required
assert_no_file "test" assert_no_file "test"
end end
def test_shebang_is_added_to_files def test_shebang_is_added_to_rails_file
run_generator [destination_root, "--ruby", "foo/bar/baz"] run_generator [destination_root, "--ruby", "foo/bar/baz"]
assert_file "script/rails", /#!foo\/bar\/baz/
%w(
about
console
dbconsole
destroy
generate
plugin
runner
server
).each { |path| assert_file "script/#{path}", /#!foo\/bar\/baz/ }
end end
def test_shebang_when_is_the_same_as_default_use_env def test_shebang_when_is_the_same_as_default_use_env
run_generator [destination_root, "--ruby", Thor::Util.ruby_command] run_generator [destination_root, "--ruby", Thor::Util.ruby_command]
assert_file "script/rails", /#!\/usr\/bin\/env/
%w(
about
console
dbconsole
destroy
generate
plugin
runner
server
).each { |path| assert_file "script/#{path}", /#!\/usr\/bin\/env/ }
end end
def test_template_from_dir_pwd def test_template_from_dir_pwd
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册