diff options
author | Micah <micah@leap.se> | 2016-05-24 10:19:38 -0400 |
---|---|---|
committer | Micah <micah@leap.se> | 2016-05-24 10:19:38 -0400 |
commit | 92a1ac5b29b497ee659c8097a5c0de94a481181c (patch) | |
tree | e9c325ad24a732b6bdb13801ef2997f10f99e02e /spec/acceptance/remove_repo_spec.rb |
Squashed 'puppet/modules/vcsrepo/' content from commit 4e23209
git-subtree-dir: puppet/modules/vcsrepo
git-subtree-split: 4e23209eaccf1ab504d35158f4141b3053327c2f
Diffstat (limited to 'spec/acceptance/remove_repo_spec.rb')
-rw-r--r-- | spec/acceptance/remove_repo_spec.rb | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/spec/acceptance/remove_repo_spec.rb b/spec/acceptance/remove_repo_spec.rb new file mode 100644 index 00000000..d5646b34 --- /dev/null +++ b/spec/acceptance/remove_repo_spec.rb @@ -0,0 +1,30 @@ +require 'spec_helper_acceptance' + +tmpdir = default.tmpdir('vcsrepo') + +describe 'remove a repo' do + it 'creates a blank repo' do + pp = <<-EOS + vcsrepo { "#{tmpdir}/testrepo_deleted": + ensure => present, + provider => git, + } + EOS + apply_manifest(pp, :catch_failures => true) + end + + it 'removes a repo' do + pp = <<-EOS + vcsrepo { "#{tmpdir}/testrepo_deleted": + ensure => absent, + provider => git, + } + EOS + + apply_manifest(pp, :catch_failures => true) + end + + describe file("#{tmpdir}/testrepo_deleted") do + it { is_expected.not_to be_directory } + end +end |