aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators_test.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2009-07-28 08:51:57 +0200
committerJosé Valim <jose.valim@gmail.com>2009-07-28 08:51:57 +0200
commit5025ae610f89989f3e15241ec7065e3d443614d9 (patch)
tree12f6f6342839126467f344ecc697c3cb24752375 /railties/test/generators_test.rb
parent419ca7a747dd2f33078f12c32b98d3b7ea0bffdb (diff)
downloadrails-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.rb5
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