summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Duarte <john.duarte@puppetlabs.com>2014-05-22 08:07:57 -0700
committerJohn Duarte <john.duarte@puppetlabs.com>2014-05-22 08:07:57 -0700
commitd11fb1c90a115e7dd27cf32ad0bfdb65700c5eab (patch)
treeebce6ee7671a68ab9122ef74c4d94cc7f1febfc8
parent2f875839afe843bd8a9f320d553fb3a28a7420f8 (diff)
downloadpuppet-vcsrepo-d11fb1c90a115e7dd27cf32ad0bfdb65700c5eab.tar.gz
puppet-vcsrepo-d11fb1c90a115e7dd27cf32ad0bfdb65700c5eab.tar.bz2
Set git bare with revision test to fail
When the revision attribute is defined in conjunction with the bare attribute when using the git provider, the repo should fail to be written to disk. See: FM-1361
-rw-r--r--spec/acceptance/create_repo_spec.rb10
1 files changed, 3 insertions, 7 deletions
diff --git a/spec/acceptance/create_repo_spec.rb b/spec/acceptance/create_repo_spec.rb
index 675517e..1b46449 100644
--- a/spec/acceptance/create_repo_spec.rb
+++ b/spec/acceptance/create_repo_spec.rb
@@ -54,7 +54,7 @@ describe 'create a repo' do
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,
@@ -63,14 +63,10 @@ describe 'create a repo' do
}
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