summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorPete Higgins <pete@peterhiggins.org>2020-03-13 13:18:33 -0700
committerPete Higgins <pete@peterhiggins.org>2020-03-23 13:55:01 -0700
commit1f629d3a004e45dfd25d06a46f565d52ac192c18 (patch)
treeb03b4fc8f2783a680e14f2a9149f21cc20f8321f /spec
parent55260569f085a39467c97a3a66e7d3b68ff6295b (diff)
downloadchef-1f629d3a004e45dfd25d06a46f565d52ac192c18.tar.gz
Default clear_sources to nil for chef_gem and gem_package.
Signed-off-by: Pete Higgins <pete@peterhiggins.org>
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/resource/gem_package_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/resource/gem_package_spec.rb b/spec/unit/resource/gem_package_spec.rb
index aba6ab1032..949396abbc 100644
--- a/spec/unit/resource/gem_package_spec.rb
+++ b/spec/unit/resource/gem_package_spec.rb
@@ -56,8 +56,8 @@ end
describe Chef::Resource::GemPackage, "clear_gem_sources" do
let(:resource) { Chef::Resource::GemPackage.new("foo") }
- it "is false by default" do
- expect(resource.clear_sources).to be false
+ it "is nil by default" do
+ expect(resource.clear_sources).to be_nil
end
it "sets the default of clear_sources to the config value" do