1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Add test for shebang in engine's script/rails file

This commit is contained in:
Stefan Sprenger 2011-05-24 13:57:36 +02:00
parent e366cd7f91
commit e2a0a94c6e

View file

@ -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"