blob: 154f25aac1c5f9a618e7baab95fa75ae956ebf2a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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
|