diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2021-03-18 10:26:11 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2021-03-18 10:26:11 -0700 |
commit | e21142b3b66392e19e6fe08e31f7499607420897 (patch) | |
tree | 05152caa9967845321fb4d110af462bc0eebc77d /spec/unit/application/solo_spec.rb | |
parent | 12265fccc388abe416d89e1f06df546d6b024747 (diff) | |
download | chef-lcg/ruby-3.0.tar.gz |
ruby 3.0 fixes and post-bundle-install hooklcg/ruby-3.0
Mostly this is all fixes necessary for ruby 3.0
There's the addition of the appbundle hook which lets us better pull
git gems into appbundler
Note carefully how after adding the post-bundle-install.rb that
trying to pre appbundle-update ohai pulls in chef/chef as bundle
installed git gem which fails to install so we go back to only
using one appbundle-update on chef/chef and removing the chef/ohai
one (which may fix other bugs).
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/unit/application/solo_spec.rb')
-rw-r--r-- | spec/unit/application/solo_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/application/solo_spec.rb b/spec/unit/application/solo_spec.rb index f9302a0bb2..16f4a7785b 100644 --- a/spec/unit/application/solo_spec.rb +++ b/spec/unit/application/solo_spec.rb @@ -108,7 +108,7 @@ describe Chef::Application::Solo do tarfile = StringIO.new("remote_tarball_content") target_file = StringIO.new - expect(app).to receive(:open).with("http://junglist.gen.nz/recipes.tgz").and_yield(tarfile) + expect(URI).to receive(:open).with("http://junglist.gen.nz/recipes.tgz").and_yield(tarfile) expect(File).to receive(:open).with("#{Dir.tmpdir}/chef-solo/recipes.tgz", "wb").and_yield(target_file) archive = double(Mixlib::Archive) |