aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-04-17 10:23:07 +0200
committerJosé Valim <jose.valim@gmail.com>2011-04-17 10:23:07 +0200
commiteb75f15a1aaa570fc0eedd1cb5ad0486e0e48450 (patch)
tree9efc2f1211baaaed9b556726c81773556660c402 /railties/test
parent5952d4f86055ed612aba66c66a4dc3092e6d4e42 (diff)
downloadrails-eb75f15a1aaa570fc0eedd1cb5ad0486e0e48450.tar.gz
rails-eb75f15a1aaa570fc0eedd1cb5ad0486e0e48450.tar.bz2
rails-eb75f15a1aaa570fc0eedd1cb5ad0486e0e48450.zip
Generate app/* stubs directories for full plugins to show ththat it is possible to extend them.
Diffstat (limited to 'railties/test')
-rw-r--r--railties/test/generators/plugin_new_generator_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/railties/test/generators/plugin_new_generator_test.rb b/railties/test/generators/plugin_new_generator_test.rb
index fd8c30efaf..d20335ad95 100644
--- a/railties/test/generators/plugin_new_generator_test.rb
+++ b/railties/test/generators/plugin_new_generator_test.rb
@@ -145,6 +145,12 @@ class PluginNewGeneratorTest < Rails::Generators::TestCase
def test_creating_engine_in_full_mode
run_generator [destination_root, "--full"]
+ assert_file "app/assets/javascripts"
+ assert_file "app/assets/stylesheets"
+ assert_file "app/models"
+ assert_file "app/controllers"
+ assert_file "app/views"
+ assert_file "app/helpers"
assert_file "config/routes.rb", /Rails.application.routes.draw do/
assert_file "lib/bukkits/engine.rb", /module Bukkits\n class Engine < Rails::Engine\n end\nend/
assert_file "lib/bukkits.rb", /require "bukkits\/engine"/