diff options
author | José Valim <jose.valim@gmail.com> | 2009-11-04 00:14:44 -0200 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-11-03 18:22:05 -0800 |
commit | d627c932bdc5c0e2911e39cfb38952c29dab7afc (patch) | |
tree | 16a2a6723f6a365d98c655e2b23574744ab6f7a3 /railties/test/generators | |
parent | e5211e3bd052ebc24905c65172d449f7b3bcc73f (diff) | |
download | rails-d627c932bdc5c0e2911e39cfb38952c29dab7afc.tar.gz rails-d627c932bdc5c0e2911e39cfb38952c29dab7afc.tar.bz2 rails-d627c932bdc5c0e2911e39cfb38952c29dab7afc.zip |
Pass config.generators options along when RAILS_GENERATORS is set and show --force-plural message just once.
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'railties/test/generators')
-rw-r--r-- | railties/test/generators/resource_generator_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/test/generators/resource_generator_test.rb b/railties/test/generators/resource_generator_test.rb index dcae81c204..886af01b22 100644 --- a/railties/test/generators/resource_generator_test.rb +++ b/railties/test/generators/resource_generator_test.rb @@ -75,7 +75,7 @@ class ResourceGeneratorTest < GeneratorsTestCase end def test_plural_names_are_singularized - content = run_generator ["accounts"] + content = run_generator ["accounts".freeze] assert_file "app/models/account.rb", /class Account < ActiveRecord::Base/ assert_file "test/unit/account_test.rb", /class AccountTest/ assert_match /Plural version of the model detected, using singularized version. Override with --force-plural./, content |