diff options
author | Carl Lerche <carllerche@mac.com> | 2009-10-16 18:10:12 -0700 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2009-10-16 18:10:52 -0700 |
commit | e1fdc8bba3e427435927685e77937b3a478aa416 (patch) | |
tree | 75cb24d055729f56d06dbabd1afda56c757e9bf0 /railties/test/generators_test.rb | |
parent | 29ba9c030704fb76dc2debbfecbb10fd70233d18 (diff) | |
download | rails-e1fdc8bba3e427435927685e77937b3a478aa416.tar.gz rails-e1fdc8bba3e427435927685e77937b3a478aa416.tar.bz2 rails-e1fdc8bba3e427435927685e77937b3a478aa416.zip |
Remove config.gem in favor of using the bundler. This makes config/boot.rb obsolete.
The bundler library is at: http://github.com/wycats/bundler/ and is a rubygem.
Diffstat (limited to 'railties/test/generators_test.rb')
-rw-r--r-- | railties/test/generators_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/test/generators_test.rb b/railties/test/generators_test.rb index 7e6b7b183c..2e19169d3d 100644 --- a/railties/test/generators_test.rb +++ b/railties/test/generators_test.rb @@ -101,10 +101,11 @@ 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, mspec, rails:javascripts, wrong.", output + assert_equal "Others: active_record:fixjour, fixjour, mspec, rails:javascripts.", output end def test_warning_is_shown_if_generator_cant_be_loaded + Rails::Generators.load_paths << File.expand_path("../fixtures/vendor/gems/gems/wrong", __FILE__) output = capture(:stderr){ Rails::Generators.find_by_namespace(:wrong) } assert_match /\[WARNING\] Could not load generator at/, output assert_match /Error: uninitialized constant Rails::Generator/, output |