1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Ensure that not namespaced generators also load RAILS_ROOT/lib/templates files.

This commit is contained in:
José Valim 2009-07-28 08:51:57 +02:00
parent 419ca7a747
commit 5025ae610f

View file

@ -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