diff options
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 |