diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2004-12-09 15:54:22 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2004-12-09 15:54:22 +0000 |
commit | 3236e15cb7a00f00e119ff8dd9cde36cb6d3d180 (patch) | |
tree | 010f37ba1566cd53cda05aec60e8da1ae35026a0 /railties/test | |
parent | c7589559dea75a735ccb74364b06d57f26f1db3d (diff) | |
download | rails-3236e15cb7a00f00e119ff8dd9cde36cb6d3d180.tar.gz rails-3236e15cb7a00f00e119ff8dd9cde36cb6d3d180.tar.bz2 rails-3236e15cb7a00f00e119ff8dd9cde36cb6d3d180.zip |
Updated the usage documentation for the generator actions for their new home
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@101 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/rails_generator_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/railties/test/rails_generator_test.rb b/railties/test/rails_generator_test.rb index b63840d338..056372ca47 100644 --- a/railties/test/rails_generator_test.rb +++ b/railties/test/rails_generator_test.rb @@ -5,6 +5,12 @@ require File.dirname(__FILE__) + '/../../activerecord/lib/active_record/support/ require 'rails_generator' require 'test/unit' +# Railties test directory has RAILS_ROOT/generators instead of the expected +# RAILS_ROOT/script/generators, so override it manually. +old_verbose, $VERBOSE = $VERBOSE, nil +Rails::Generator.const_set(:CONTRIB_ROOT, "#{RAILS_ROOT}/generators") +$VERBOSE = old_verbose + class RailsGeneratorTest < Test::Unit::TestCase BUILTINS = %w(controller mailer model scaffold) |