diff options
author | Yehuda Katz <wycats@183.207.128.10.in-addr.arpa.noptr.antlabs.com> | 2010-01-09 11:01:54 -0600 |
---|---|---|
committer | Yehuda Katz <wycats@183.207.128.10.in-addr.arpa.noptr.antlabs.com> | 2010-01-09 11:04:06 -0600 |
commit | 8665c754cb61c947cd55f8886c28188050aed78d (patch) | |
tree | a246ab1a1437281ca6f32f689c5e7ffc26be0447 /railties/test | |
parent | 7e6530b17003b3c42ebbfa8119c3fb7f3aea64b2 (diff) | |
download | rails-8665c754cb61c947cd55f8886c28188050aed78d.tar.gz rails-8665c754cb61c947cd55f8886c28188050aed78d.tar.bz2 rails-8665c754cb61c947cd55f8886c28188050aed78d.zip |
Add a generator_paths config option
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/plugins/configuration_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/railties/test/plugins/configuration_test.rb b/railties/test/plugins/configuration_test.rb index 25bf24eb3b..03c738971f 100644 --- a/railties/test/plugins/configuration_test.rb +++ b/railties/test/plugins/configuration_test.rb @@ -24,6 +24,12 @@ module PluginsTest assert_equal "hello", AppTemplate::Application.config.foo.greetings end + test "plugins can provide generators" do + class Foo < Rails::Railtie ; config.generator_paths << "/foo" ; end + require "#{app_path}/config/application" + assert_eqaul ["/foo"], AppTemplate::Application.config.generator_paths + end + test "plugin config merges are deep" do class Foo < Rails::Railtie ; config.foo.greetings = 'hello' ; end class MyApp < Rails::Application |