diff options
author | José Valim <jose.valim@gmail.com> | 2009-06-24 15:08:28 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-06-25 10:39:43 +0200 |
commit | 0ed602b3ef3351441b9edca59a7a1da6633a4e32 (patch) | |
tree | bf051bf50100af0860a4083ab4d69785a2948f7e /railties/lib | |
parent | ccd26575d12301816b11bdb22847e10173bd3ea2 (diff) | |
download | rails-0ed602b3ef3351441b9edca59a7a1da6633a4e32.tar.gz rails-0ed602b3ef3351441b9edca59a7a1da6633a4e32.tar.bz2 rails-0ed602b3ef3351441b9edca59a7a1da6633a4e32.zip |
Removed TODOs.
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/generators/base.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/railties/lib/generators/base.rb b/railties/lib/generators/base.rb index b530713805..4f394d2e38 100644 --- a/railties/lib/generators/base.rb +++ b/railties/lib/generators/base.rb @@ -73,9 +73,8 @@ module Rails # Small macro to add test_framework option and invoke it. # def self.add_test_framework_option! - # TODO Reduce the example name class_option :test_framework, :type => :string, :aliases => "-t", :default => "test_unit", - :desc => "Test framework to be invoked by this generator" + :desc => "Test framework to be invoked by this generator", :banner => "NAME" define_method :invoke_test_framework do return unless options[:test_framework] @@ -83,8 +82,8 @@ module Rails begin invoke name - rescue Thor::UndefinedTaskError # TODO Ensure this message is called. - say "Could not find and/or invoke #{name}." + rescue Thor::UndefinedTaskError + say "Could not find and invoke #{name}." end end end |