Skip to content
Browse files

Run bundle install once when using plugin_new --full --mountable. Clo…

…ses #555
  • Loading branch information...
1 parent a898df6 commit 0a070a2444a5e2167e208c0b327af37d757ef70a @spastorino spastorino committed May 17, 2011
View
1 railties/lib/rails/generators/rails/plugin_new/plugin_new_generator.rb
@@ -75,6 +75,7 @@ def test
def generate_test_dummy(force = false)
opts = (options || {}).slice(*PASSTHROUGH_OPTIONS)
opts[:force] = force
+ opts[:skip_bundle] = true
invoke Rails::Generators::AppGenerator,
[ File.expand_path(dummy_path, destination_root) ], opts
View
5 railties/test/generators/plugin_new_generator_test.rb
@@ -95,6 +95,11 @@ def test_ensure_that_database_option_is_passed_to_app_generator
assert_file "test/dummy/config/database.yml", /postgres/
end
+ def test_generation_runs_bundle_install_with_full_and_mountable
+ result = run_generator [destination_root, "--mountable", "--full"]
+ assert_equal 1, result.scan("Your bundle is complete").size
+ end
+
def test_skipping_javascripts_without_mountable_option
run_generator
assert_no_file "app/assets/javascripts/application.js"

0 comments on commit 0a070a2

Please sign in to comment.
Something went wrong with that request. Please try again.