Permalink
Browse files

Merge pull request #1260 from flippingbits/master

Remove shebang from the template
  • Loading branch information...
2 parents b145a72 + e2a0a94 commit 41eac9b3f6b4a38de3b4c38e5b8d9f0e6b3cb08a @josevalim josevalim committed May 25, 2011
@@ -1,4 +1,3 @@
-#!/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"

0 comments on commit 41eac9b

Please sign in to comment.