aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application/generators_test.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2009-11-04 00:14:44 -0200
committerJeremy Kemper <jeremy@bitsweat.net>2009-11-03 18:22:05 -0800
commitd627c932bdc5c0e2911e39cfb38952c29dab7afc (patch)
tree16a2a6723f6a365d98c655e2b23574744ab6f7a3 /railties/test/application/generators_test.rb
parente5211e3bd052ebc24905c65172d449f7b3bcc73f (diff)
downloadrails-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/application/generators_test.rb')
-rw-r--r--railties/test/application/generators_test.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/railties/test/application/generators_test.rb b/railties/test/application/generators_test.rb
index 445a867c85..bfbf1ffd16 100644
--- a/railties/test/application/generators_test.rb
+++ b/railties/test/application/generators_test.rb
@@ -1,4 +1,5 @@
require "isolation/abstract_unit"
+RAILS_GENERATORS = true
module ApplicationTests
class GeneratorsTest < Test::Unit::TestCase
@@ -23,7 +24,8 @@ module ApplicationTests
Rails::Initializer.run do |c|
c.generators.orm = :datamapper
c.generators.test_framework = :rspec
- expected = { :rails => { :orm => :datamapper, :test_framework => :rspec } }
+ c.generators.helper = false
+ expected = { :rails => { :orm => :datamapper, :test_framework => :rspec, :helper => false } }
assert_equal(expected, c.generators.options)
end
end
@@ -93,4 +95,4 @@ module ApplicationTests
assert Rails::Generators.options.size >= 1
end
end
-end \ No newline at end of file
+end