diff options
author | 5Ub-Z3r0 <5ub-z3r0@nikorasu.net> | 2012-10-10 17:38:03 +0300 |
---|---|---|
committer | Aaron Stone <aaron@serendipity.cx> | 2013-07-19 12:44:23 -0700 |
commit | 481cbe15a83fb397aa023c97aaf5ec19ee2f0632 (patch) | |
tree | e61b549e2c26a43f649a53e75a40dca7b64d9be5 /spec/unit/puppet/provider/vcsrepo | |
parent | 1881688dc0c0ed72002d3f74764435f56f2c2429 (diff) | |
download | puppet-vcsrepo-481cbe15a83fb397aa023c97aaf5ec19ee2f0632.tar.gz puppet-vcsrepo-481cbe15a83fb397aa023c97aaf5ec19ee2f0632.tar.bz2 |
Add support for master svn repositories
Pull request related to issue #8331.
I have added support into the exists? method (actually working_copy_exists?) for checking if the path is a master repository, using svnlook. It should be ok in most cases, since svnlook comes with svnadmin in nearly every distribution.
Diffstat (limited to 'spec/unit/puppet/provider/vcsrepo')
-rw-r--r-- | spec/unit/puppet/provider/vcsrepo/svn_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/unit/puppet/provider/vcsrepo/svn_spec.rb b/spec/unit/puppet/provider/vcsrepo/svn_spec.rb index 75d58f9..a533b7c 100644 --- a/spec/unit/puppet/provider/vcsrepo/svn_spec.rb +++ b/spec/unit/puppet/provider/vcsrepo/svn_spec.rb @@ -49,6 +49,7 @@ describe_provider :vcsrepo, :svn, :resource => {:path => '/tmp/vcsrepo'} do describe "checking existence" do it "should check for the directory" do + expects_directory?(true, resource.value(:path)) expects_directory?(true, File.join(resource.value(:path), '.svn')) provider.exists? end |