diff options
author | John Goulah <jgoulah@gmail.com> | 2013-02-03 16:30:26 -0500 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2013-11-26 07:31:19 -0800 |
commit | c7f2c834ae4f57245831bd537843646015943c03 (patch) | |
tree | a557acd5892bdf77dbc319dc8ffdc7bcae1ba6d7 /spec/unit/resource/scm_spec.rb | |
parent | 9621c3b58c766dffdaadf7ae5436b530cc9d5bbe (diff) | |
download | chef-c7f2c834ae4f57245831bd537843646015943c03.tar.gz |
some tests for the enable_checkout option
Diffstat (limited to 'spec/unit/resource/scm_spec.rb')
-rw-r--r-- | spec/unit/resource/scm_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/unit/resource/scm_spec.rb b/spec/unit/resource/scm_spec.rb index 8f6593a931..2141ae3c88 100644 --- a/spec/unit/resource/scm_spec.rb +++ b/spec/unit/resource/scm_spec.rb @@ -118,6 +118,16 @@ describe Chef::Resource::Scm do @resource.enable_submodules.should be_false end + it "takes a boolean for #enable_checkout" do + @resource.enable_checkout true + @resource.enable_checkout.should be_true + lambda {@resource.enable_checkout "lolz"}.should raise_error(ArgumentError) + end + + it "defaults to enabling checkout" do + @resource.enable_checkout.should be_true + end + it "takes a string for the remote" do @resource.remote "opscode" @resource.remote.should eql("opscode") |