diff options
author | José Valim <jose.valim@gmail.com> | 2009-07-28 08:51:57 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-07-28 08:51:57 +0200 |
commit | 5025ae610f89989f3e15241ec7065e3d443614d9 (patch) | |
tree | 12f6f6342839126467f344ecc697c3cb24752375 /railties/test/generators_test.rb | |
parent | 419ca7a747dd2f33078f12c32b98d3b7ea0bffdb (diff) | |
download | rails-5025ae610f89989f3e15241ec7065e3d443614d9.tar.gz rails-5025ae610f89989f3e15241ec7065e3d443614d9.tar.bz2 rails-5025ae610f89989f3e15241ec7065e3d443614d9.zip |
Ensure that not namespaced generators also load RAILS_ROOT/lib/templates files.
Diffstat (limited to 'railties/test/generators_test.rb')
-rw-r--r-- | railties/test/generators_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/railties/test/generators_test.rb b/railties/test/generators_test.rb index 103f9b7def..89d52dd170 100644 --- a/railties/test/generators_test.rb +++ b/railties/test/generators_test.rb @@ -148,4 +148,9 @@ class GeneratorsTest < GeneratorsTestCase assert_equal false, klass.class_options[:generate].default end + + def test_source_paths_for_not_namespaced_generators + mspec = Rails::Generators.find_by_namespace :mspec + assert mspec.source_paths.include?(File.join(RAILS_ROOT, "lib", "templates", "mspec")) + end end |