summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Justice <jjustice6@bloomberg.net>2019-09-18 14:47:39 -0400
committerJoshua Justice <jjustice6@bloomberg.net>2019-09-18 14:47:39 -0400
commitb4ea9af80e28309a086efd15825fb840f3d9d670 (patch)
tree2c9aad2c41b9977fcb634f65bde5ce0e9d02e99a
parent5bdedb39af8f91906d49a23fc244c9954ab5789f (diff)
downloadchef-b4ea9af80e28309a086efd15825fb840f3d9d670.tar.gz
Looks like it's empty rather than nil here.
Signed-off-by: Joshua Justice <jjustice6@bloomberg.net>
-rw-r--r--spec/unit/cookbook/gem_installer_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/cookbook/gem_installer_spec.rb b/spec/unit/cookbook/gem_installer_spec.rb
index 807e801aaf..858710d952 100644
--- a/spec/unit/cookbook/gem_installer_spec.rb
+++ b/spec/unit/cookbook/gem_installer_spec.rb
@@ -101,13 +101,13 @@ describe Chef::Cookbook::GemInstaller do
it "install metadata when Chef::Config[:skip_gem_metadata_installation] is not true" do
expect(gem_installer).to receive(:shell_out!).and_return(shell_out)
expect(Chef::Log).to receive(:info).and_return("")
- expect(gem_installer.install).to be_nil
+ expect(gem_installer.install).to be_empty
end
it "install from local cache when Chef::Config[:gem_installer_bundler_options] is set to local" do
Chef::Config[:gem_installer_bundler_options] = "--local"
expect(gem_installer).to receive(:shell_out!).with(["bundle", "install", "--local"], any_args).and_return(shell_out)
expect(Chef::Log).to receive(:info).and_return("")
- expect(gem_installer.install).to be_nil
+ expect(gem_installer.install).to be_empty
end
end