end
context 'bare repo with a revision' do
- it 'creates a bare repo' do
+ it 'does not create a bare repo when a revision is defined' do
pp = <<-EOS
vcsrepo { "#{tmpdir}/testrepo_bare_repo_rev":
ensure => bare,
}
EOS
- apply_manifest(pp, :catch_failures => true)
- end
-
- describe file("#{tmpdir}/testrepo_bare_repo_rev/config") do
- it { should contain 'bare = true' }
+ apply_manifest(pp, :expect_failures => true)
end
- describe file("#{tmpdir}/testrepo_bare_repo_rev/.git") do
+ describe file("#{tmpdir}/testrepo_bare_repo_rev") do
it { should_not be_directory }
end
end