summaryrefslogtreecommitdiff
path: root/spec/unit/resource/scm_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/resource/scm_spec.rb')
-rw-r--r--spec/unit/resource/scm_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/resource/scm_spec.rb b/spec/unit/resource/scm_spec.rb
index daabdd03ba..72319277ab 100644
--- a/spec/unit/resource/scm_spec.rb
+++ b/spec/unit/resource/scm_spec.rb
@@ -110,22 +110,22 @@ describe Chef::Resource::Scm do
it "takes a boolean for #enable_submodules" do
@resource.enable_submodules true
- expect(@resource.enable_submodules).to be_true
+ expect(@resource.enable_submodules).to be_truthy
expect {@resource.enable_submodules "lolz"}.to raise_error(ArgumentError)
end
it "defaults to not enabling submodules" do
- expect(@resource.enable_submodules).to be_false
+ expect(@resource.enable_submodules).to be_falsey
end
it "takes a boolean for #enable_checkout" do
@resource.enable_checkout true
- expect(@resource.enable_checkout).to be_true
+ expect(@resource.enable_checkout).to be_truthy
expect {@resource.enable_checkout "lolz"}.to raise_error(ArgumentError)
end
it "defaults to enabling checkout" do
- expect(@resource.enable_checkout).to be_true
+ expect(@resource.enable_checkout).to be_truthy
end
it "takes a string for the remote" do