提交 41eac9b3 编写于 作者: J José Valim

Merge pull request #1260 from flippingbits/master

Remove shebang from the template
#!/usr/bin/env ruby
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
ENGINE_PATH = File.expand_path('../..', __FILE__)
......
......@@ -176,6 +176,11 @@ def test_creating_gemspec
assert_file "bukkits.gemspec", /s.version = "0.0.1"/
end
def test_shebang
run_generator
assert_file "script/rails", /#!\/usr\/bin\/env ruby/
end
def test_passing_dummy_path_as_a_parameter
run_generator [destination_root, "--dummy_path", "spec/dummy"]
assert_file "spec/dummy"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册