From d11fb1c90a115e7dd27cf32ad0bfdb65700c5eab Mon Sep 17 00:00:00 2001 From: John Duarte Date: Thu, 22 May 2014 08:07:57 -0700 Subject: 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 --- spec/acceptance/create_repo_spec.rb | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'spec/acceptance') 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 -- cgit v1.2.3