diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2010-11-15 13:09:05 -0600 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-11-16 00:04:35 +0100 |
commit | b0665345f85e4b7f3b3367ee36fa205e7ff78d12 (patch) | |
tree | db237874e758668e689d805f6b08a04173d480e1 /railties/test | |
parent | 4da6d956043337c3c14d4f74cbbf05c3a50b4e9b (diff) | |
download | rails-b0665345f85e4b7f3b3367ee36fa205e7ff78d12.tar.gz rails-b0665345f85e4b7f3b3367ee36fa205e7ff78d12.tar.bz2 rails-b0665345f85e4b7f3b3367ee36fa205e7ff78d12.zip |
Allow running `rails plugin new` command inside rails application
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/application/generators_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/railties/test/application/generators_test.rb b/railties/test/application/generators_test.rb index 551e966c85..581cc71f89 100644 --- a/railties/test/application/generators_test.rb +++ b/railties/test/application/generators_test.rb @@ -25,6 +25,12 @@ module ApplicationTests yield app_const.config end + test "allow running plugin new generator inside Rails app directory" do + FileUtils.cd rails_root + `./script/rails plugin new vendor/plugins/bukkits` + assert File.exist?(File.join(rails_root, "vendor/plugins/bukkits/test/dummy/config/application.rb")) + end + test "generators default values" do with_bare_config do |c| assert_equal(true, c.generators.colorize_logging) |