diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2017-08-20 17:28:22 -0400 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2017-08-28 16:21:49 -0500 |
commit | 468993fbc4993f90ba780a2161c63c0bc3862255 (patch) | |
tree | 663e6d6642277fcb273f31e51d5e65ad40bda045 /spec/plugins | |
parent | 6ce61e7c6060d1d7a45a131031be472aa25e1d7e (diff) | |
download | bundler-468993fbc4993f90ba780a2161c63c0bc3862255.tar.gz |
Automatically bundle clean without a path set on 2.0
Diffstat (limited to 'spec/plugins')
-rw-r--r-- | spec/plugins/source/example_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/plugins/source/example_spec.rb b/spec/plugins/source/example_spec.rb index 4f5e5f3fdb..fdeec0b634 100644 --- a/spec/plugins/source/example_spec.rb +++ b/spec/plugins/source/example_spec.rb @@ -36,6 +36,10 @@ RSpec.describe "real source plugins" do mkdir_p(install_path.parent) FileUtils.cp_r(path, install_path) + spec_path = install_path.join("\#{spec.full_name}.gemspec") + spec_path.open("wb") {|f| f.write spec.to_ruby } + spec.loaded_from = spec_path.to_s + post_install(spec) nil @@ -252,6 +256,10 @@ RSpec.describe "real source plugins" do `git reset --hard \#{revision}` end + spec_path = install_path.join("\#{spec.full_name}.gemspec") + spec_path.open("wb") {|f| f.write spec.to_ruby } + spec.loaded_from = spec_path.to_s + post_install(spec) nil |