summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorBryan Jen <bryan.jen@gmail.com>2015-10-16 08:51:13 -0700
committerBryan Jen <bryan.jen@gmail.com>2015-10-16 08:51:13 -0700
commit99e8b2e28ce9541202b8b2438a92ee8ac2b03d6a (patch)
treebba378ad93598ce3adfa11bcfcf5ff73003e0360 /spec
parent279be07607dd132f9446291cf1afa5ef2320632a (diff)
parentbf0f40ae4efa9095ca9a877acefdb781e1fbf1cd (diff)
downloadpuppet-vcsrepo-99e8b2e28ce9541202b8b2438a92ee8ac2b03d6a.tar.gz
puppet-vcsrepo-99e8b2e28ce9541202b8b2438a92ee8ac2b03d6a.tar.bz2
Merge pull request #273 from hunner/fix_trustcert
Fix :false to be default value
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/puppet/provider/vcsrepo/svn_spec.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/spec/unit/puppet/provider/vcsrepo/svn_spec.rb b/spec/unit/puppet/provider/vcsrepo/svn_spec.rb
index 25951bd..6a37c20 100644
--- a/spec/unit/puppet/provider/vcsrepo/svn_spec.rb
+++ b/spec/unit/puppet/provider/vcsrepo/svn_spec.rb
@@ -65,9 +65,17 @@ describe Puppet::Type.type(:vcsrepo).provider(:svn) do
end
context "with trust_server_cert" do
+ it "should execute 'svn checkout' without a trust-server-cert" do
+ resource[:source] = 'exists'
+ resource[:trust_server_cert] = :false
+ provider.expects(:svn).with('--non-interactive', 'checkout',
+ resource.value(:source),
+ resource.value(:path))
+ provider.create
+ end
it "should execute 'svn checkout' with a trust-server-cert" do
resource[:source] = 'exists'
- resource[:trust_server_cert] = true
+ resource[:trust_server_cert] = :true
provider.expects(:svn).with('--non-interactive', '--trust-server-cert', 'checkout',
resource.value(:source),
resource.value(:path))