aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators_test.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2009-07-04 10:32:10 +0200
committerJosé Valim <jose.valim@gmail.com>2009-07-04 20:17:31 +0200
commitcd388e075c363d80f9bba050bbc77d7a1a1e0e07 (patch)
treeb3f9cc7c5a5502d7b3f921e7b1d07bb2f58dd273 /railties/test/generators_test.rb
parent37ba0047a98279ad818744c5ab3b4bb5f3f3eef8 (diff)
downloadrails-cd388e075c363d80f9bba050bbc77d7a1a1e0e07.tar.gz
rails-cd388e075c363d80f9bba050bbc77d7a1a1e0e07.tar.bz2
rails-cd388e075c363d80f9bba050bbc77d7a1a1e0e07.zip
Search for generators on vendorized plugins and gems.
Diffstat (limited to 'railties/test/generators_test.rb')
-rw-r--r--railties/test/generators_test.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/railties/test/generators_test.rb b/railties/test/generators_test.rb
index c49081e5cc..c7195f753d 100644
--- a/railties/test/generators_test.rb
+++ b/railties/test/generators_test.rb
@@ -63,6 +63,12 @@ class GeneratorsTest < GeneratorsTestCase
assert_equal "rails:generators:javascripts", klass.namespace
end
+ def test_find_by_namespace_lookup_to_vendor_folders
+ klass = Rails::Generators.find_by_namespace(:mspec)
+ assert klass
+ assert_equal "mspec", klass.namespace
+ end
+
def test_builtin_generators
assert Rails::Generators.builtin.include? %w(rails model)
end
@@ -75,7 +81,7 @@ class GeneratorsTest < GeneratorsTestCase
def test_rails_generators_with_others_information
output = capture(:stdout){ Rails::Generators.help }.split("\n").last
- assert_equal "Others: active_record:fixjour, fixjour, rails:javascripts.", output
+ assert_equal "Others: active_record:fixjour, fixjour, mspec, rails:javascripts.", output
end
def test_no_color_sets_proper_shell