diff options
author | José Valim <jose.valim@gmail.com> | 2010-05-15 15:21:14 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-05-15 15:21:14 +0200 |
commit | 6f0ed7aa521e55bb2c12a29b86c0e8e68468cef8 (patch) | |
tree | 8f1a9d490ee01195333b304ce51c92dc19fe1e76 /railties/test/generators_test.rb | |
parent | 9cfeefb637b603ce41d3019c8baa95ea984620d7 (diff) | |
download | rails-6f0ed7aa521e55bb2c12a29b86c0e8e68468cef8.tar.gz rails-6f0ed7aa521e55bb2c12a29b86c0e8e68468cef8.tar.bz2 rails-6f0ed7aa521e55bb2c12a29b86c0e8e68468cef8.zip |
Update generators test.
Diffstat (limited to 'railties/test/generators_test.rb')
-rw-r--r-- | railties/test/generators_test.rb | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/railties/test/generators_test.rb b/railties/test/generators_test.rb index 16f8f43b99..74a09d4bde 100644 --- a/railties/test/generators_test.rb +++ b/railties/test/generators_test.rb @@ -108,21 +108,10 @@ class GeneratorsTest < Rails::Generators::TestCase assert_match /^ fixjour$/, output end - def test_rails_generators_does_not_show_activerecord_info_if_its_the_default - output = capture(:stdout){ Rails::Generators.help } - assert_no_match /ActiveRecord:/, output - assert_no_match /^ active_record:model$/, output - assert_no_match /^ active_record:fixjour$/, output - end - - def test_rails_generators_shows_activerecord_info_if_its_not_the_default - Rails::Generators.options[:rails][:orm] = :data_mapper + def test_rails_generators_does_not_show_activerecord_hooks output = capture(:stdout){ Rails::Generators.help } assert_match /ActiveRecord:/, output - assert_match /^ active_record:model$/, output assert_match /^ active_record:fixjour$/, output - ensure - Rails::Generators.options[:rails][:orm] = :active_record end def test_no_color_sets_proper_shell |