Skip to content

Commit

Permalink
Merge pull request #1260 from flippingbits/master
Browse files Browse the repository at this point in the history
Remove shebang from the template
  • Loading branch information
josevalim committed May 25, 2011
2 parents b145a72 + e2a0a94 commit 41eac9b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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__)
Expand Down
5 changes: 5 additions & 0 deletions railties/test/generators/plugin_new_generator_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 41eac9b

Please sign in to comment.