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:
parent
419ca7a747
commit
5025ae610f
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue