mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Ensure that options for plugin new generator are not passed to application generator
This commit is contained in:
parent
b37938eff7
commit
b8a0fabe18
2 changed files with 7 additions and 1 deletions
|
@ -37,7 +37,7 @@ module Rails
|
|||
|
||||
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 @@ class PluginNewGeneratorTest < Rails::Generators::TestCase
|
|||
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)
|
||||
|
|
Loading…
Reference in a new issue