summaryrefslogtreecommitdiff
path: root/spec/acceptance
diff options
context:
space:
mode:
authorHunter Haugen <hunter@puppetlabs.com>2014-05-22 13:03:59 -0700
committerHunter Haugen <hunter@puppetlabs.com>2014-05-22 13:03:59 -0700
commitd98e0083f33f76e1ad13b650df81bdb18e4b59fe (patch)
tree4fdcc3c9ca713eb1ea82869baa3d88c8f68f74cc /spec/acceptance
parent76025ad1559a031efcaad25454dcd581d7a64b2d (diff)
parentd11fb1c90a115e7dd27cf32ad0bfdb65700c5eab (diff)
Merge pull request #148 from johnduarte/bare_with_revision_should_fail
Set git bare with revision test to fail
Diffstat (limited to 'spec/acceptance')
-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