diff options
author | Paul Allen <pallen@perforce.com> | 2014-07-08 11:02:11 +0100 |
---|---|---|
committer | Paul Allen <pallen@perforce.com> | 2014-07-08 11:02:11 +0100 |
commit | 89ba0d8127bf7700c70e703eb667f58786c7ef01 (patch) | |
tree | 335ecdda7cb5afa16589e1c3666f3402d5deac70 /spec/acceptance | |
parent | 34cc0c0d4e35fdc5a7b8381033886d160927d501 (diff) | |
parent | 4592bfd59cd5d4795069798a14b483e16c98c1ff (diff) | |
download | puppet-vcsrepo-89ba0d8127bf7700c70e703eb667f58786c7ef01.tar.gz puppet-vcsrepo-89ba0d8127bf7700c70e703eb667f58786c7ef01.tar.bz2 |
Merge merge lint changes
Diffstat (limited to 'spec/acceptance')
-rw-r--r-- | spec/acceptance/remove_repo_spec_noop.rb | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/spec/acceptance/remove_repo_spec_noop.rb b/spec/acceptance/remove_repo_spec_noop.rb new file mode 100644 index 0000000..154f25a --- /dev/null +++ b/spec/acceptance/remove_repo_spec_noop.rb @@ -0,0 +1,31 @@ +require 'spec_helper_acceptance' + +tmpdir = default.tmpdir('vcsrepo') + +describe 'does not remove a repo if noop' do + it 'creates a blank repo' do + pp = <<-EOS + vcsrepo { "#{tmpdir}/testrepo_noop_deleted": + ensure => present, + provider => git, + } + EOS + apply_manifest(pp, :catch_failures => true) + end + + it 'does not remove a repo if noop' do + pp = <<-EOS + vcsrepo { "#{tmpdir}/testrepo_noop_deleted": + ensure => absent, + provider => git, + force => true, + } + EOS + + apply_manifest(pp, :catch_failures => true, :noop => true, :verbose => false) + end + + describe file("#{tmpdir}/testrepo_noop_deleted") do + it { should be_directory } + end +end |