diff options
author | Stefan Sprenger <stefan.sprenger@dkd.de> | 2011-05-24 13:57:36 +0200 |
---|---|---|
committer | Stefan Sprenger <stefan.sprenger@dkd.de> | 2011-05-24 13:57:36 +0200 |
commit | e2a0a94c6efcce7a0b6223d33bc3ba4eee692827 (patch) | |
tree | 306bd76bd77e85b66649662c47ea8cb945825043 | |
parent | e366cd7f91436ed1a781cdf879357eb0c3bec09d (diff) | |
download | rails-e2a0a94c6efcce7a0b6223d33bc3ba4eee692827.tar.gz rails-e2a0a94c6efcce7a0b6223d33bc3ba4eee692827.tar.bz2 rails-e2a0a94c6efcce7a0b6223d33bc3ba4eee692827.zip |
Add test for shebang in engine's script/rails file
-rw-r--r-- | railties/test/generators/plugin_new_generator_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/railties/test/generators/plugin_new_generator_test.rb b/railties/test/generators/plugin_new_generator_test.rb index 779e362d75..60bec5b27f 100644 --- a/railties/test/generators/plugin_new_generator_test.rb +++ b/railties/test/generators/plugin_new_generator_test.rb @@ -176,6 +176,11 @@ class PluginNewGeneratorTest < Rails::Generators::TestCase 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" |