Permalink
Browse files

Ensure that options for plugin new generator are not passed to applic…

…ation generator
  • Loading branch information...
1 parent b37938e commit b8a0fabe184f6c8f926f7869341ca40b6395606a @drogus committed Oct 19, 2010
@@ -37,7 +37,7 @@ def test
def test_dummy
invoke Rails::Generators::AppGenerator,
- [ File.expand_path(dummy_path, destination_root) ]
+ [ File.expand_path(dummy_path, destination_root) ], {}
end
def test_dummy_config
@@ -104,6 +104,12 @@ def test_generating_test_files
assert_file "test/support/integration_case.rb", /class ActiveSupport::IntegrationCase/
end
+ def test_ensure_that_plugin_options_are_not_passed_app_generator
+ output = run_generator [destination_root, "--skip_gemfile"]
+ assert_no_file "Gemfile"
+ assert_match /STEP 2.*create Gemfile/m, output
+ end
+
protected
def action(*args, &block)

0 comments on commit b8a0fab

Please sign in to comment.