提交 5025ae61 编写于 作者: J José Valim

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

上级 419ca7a7
......@@ -148,4 +148,9 @@ def self.name
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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册