diff options
author | Yoshiyuki Hirano <yhirano@me.com> | 2017-08-06 15:07:46 +0900 |
---|---|---|
committer | Yoshiyuki Hirano <yhirano@me.com> | 2017-08-06 21:02:16 +0900 |
commit | 02499892a20c14073f59ea1929caf8f1bd4a8c21 (patch) | |
tree | 071dae0ea09a8cf7f8a5f30fa6e29c427d3120b4 /railties/test | |
parent | a8217bb594a625fb46a6af1488c0bde4aeac4986 (diff) | |
download | rails-02499892a20c14073f59ea1929caf8f1bd4a8c21.tar.gz rails-02499892a20c14073f59ea1929caf8f1bd4a8c21.tar.bz2 rails-02499892a20c14073f59ea1929caf8f1bd4a8c21.zip |
Fix engine command
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/generators/plugin_generator_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/railties/test/generators/plugin_generator_test.rb b/railties/test/generators/plugin_generator_test.rb index 1dfff38543..df7256db50 100644 --- a/railties/test/generators/plugin_generator_test.rb +++ b/railties/test/generators/plugin_generator_test.rb @@ -101,6 +101,9 @@ class PluginGeneratorTest < Rails::Generators::TestCase assert_file "Rakefile" do |contents| assert_no_match(/APP_RAKEFILE/, contents) end + assert_file "bin/rails" do |contents| + assert_no_match(/APP_PATH/, contents) + end end def test_generating_adds_dummy_app_in_full_mode_without_sprockets @@ -114,6 +117,7 @@ class PluginGeneratorTest < Rails::Generators::TestCase def test_generating_adds_dummy_app_rake_tasks_without_unit_test_files run_generator [destination_root, "-T", "--mountable", "--dummy-path", "my_dummy_app"] assert_file "Rakefile", /APP_RAKEFILE/ + assert_file "bin/rails", /APP_PATH/ end def test_generating_adds_dummy_app_without_javascript_and_assets_deps |