diff --git a/Rakefile b/Rakefile index f1778b4..2367e4b 100644 --- a/Rakefile +++ b/Rakefile @@ -58,11 +58,12 @@ task :generate_test_gem => ['engine_cart:setup'] do system "echo '\ngem \"rspec-rails\"\n' >> Gemfile" - Bundler.clean_system "bundle update --quiet" + Bundler.unbundled_system "bundle update --quiet" + system "echo 'require \"engine_cart/rake_task\"\n' >> Rakefile" system("bundle exec rake engine_cart:prepare") - Bundler.clean_system "bundle install --quiet" + Bundler.unbundled_system "bundle install --quiet" end end diff --git a/lib/engine_cart/tasks/engine_cart.rake b/lib/engine_cart/tasks/engine_cart.rake index 730c142..61e35a5 100644 --- a/lib/engine_cart/tasks/engine_cart.rake +++ b/lib/engine_cart/tasks/engine_cart.rake @@ -108,7 +108,7 @@ namespace :engine_cart do # Copy our test app generators into the app and prepare it if File.exist? "#{EngineCart.templates_path}/lib/generators" - Bundler.clean_system "cp -r #{EngineCart.templates_path}/lib/generators #{EngineCart.destination}/lib" + Bundler.unbundled_system "cp -r #{EngineCart.templates_path}/lib/generators #{EngineCart.destination}/lib" end within_test_app do @@ -120,7 +120,7 @@ namespace :engine_cart do end end - Bundler.clean_system "bundle install --quiet" + Bundler.unbundled_system "bundle install --quiet" EngineCart.write_fingerprint