diff options
author | Hunter Haugen <hunter@puppetlabs.com> | 2014-05-22 13:03:59 -0700 |
---|---|---|
committer | Hunter Haugen <hunter@puppetlabs.com> | 2014-05-22 13:03:59 -0700 |
commit | d98e0083f33f76e1ad13b650df81bdb18e4b59fe (patch) | |
tree | 4fdcc3c9ca713eb1ea82869baa3d88c8f68f74cc /spec | |
parent | 76025ad1559a031efcaad25454dcd581d7a64b2d (diff) | |
parent | d11fb1c90a115e7dd27cf32ad0bfdb65700c5eab (diff) | |
download | puppet-vcsrepo-d98e0083f33f76e1ad13b650df81bdb18e4b59fe.tar.gz puppet-vcsrepo-d98e0083f33f76e1ad13b650df81bdb18e4b59fe.tar.bz2 |
Merge pull request #148 from johnduarte/bare_with_revision_should_fail
Set git bare with revision test to fail
Diffstat (limited to 'spec')
-rw-r--r-- | spec/acceptance/create_repo_spec.rb | 10 |
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 |