aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/generators/base.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2009-06-25 10:18:00 +0200
committerJosé Valim <jose.valim@gmail.com>2009-06-25 10:39:44 +0200
commitf596495556f871650ed6b7a67128e4fd13cd3773 (patch)
tree95315a6040f5f5f0fb53b0815e3314a1dfbd0383 /railties/lib/generators/base.rb
parenta748bb796145981c65cb6d342b4b3b02ef4c0ba0 (diff)
downloadrails-f596495556f871650ed6b7a67128e4fd13cd3773.tar.gz
rails-f596495556f871650ed6b7a67128e4fd13cd3773.tar.bz2
rails-f596495556f871650ed6b7a67128e4fd13cd3773.zip
Tests for plugin generator.
Diffstat (limited to 'railties/lib/generators/base.rb')
-rw-r--r--railties/lib/generators/base.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/generators/base.rb b/railties/lib/generators/base.rb
index e40c018a59..e7d0ac80eb 100644
--- a/railties/lib/generators/base.rb
+++ b/railties/lib/generators/base.rb
@@ -71,7 +71,7 @@ module Rails
# Small macro to add test_framework option and invoke it.
#
- def self.add_test_framework_option!
+ def self.add_and_invoke_test_framework_option!
class_option :test_framework, :type => :string, :aliases => "-t", :default => "test_unit",
:desc => "Test framework to be invoked by this generator", :banner => "NAME"
@@ -82,7 +82,7 @@ module Rails
begin
invoke name
rescue Thor::UndefinedTaskError
- say "Could not find and invoke #{name}."
+ say "Could not find and invoke '#{name}'."
end
end
end