diff options
Diffstat (limited to 'railties')
-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 |