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:
parent
e366cd7f91
commit
e2a0a94c6e
1 changed files with 5 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue