summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Duarte <john.duarte@puppetlabs.com>2014-05-11 08:07:10 -0700
committerJohn Duarte <john.duarte@puppetlabs.com>2014-05-18 11:38:19 -0700
commiteaf1e2d77754bc5f9070274f2c4da9409a003208 (patch)
tree9b1a98b3bec684687beaf5b520f79adc07ffdb03
parentef946812c16f2d5e9d120199378b5ade825740c3 (diff)
downloadpuppet-vcsrepo-eaf1e2d77754bc5f9070274f2c4da9409a003208.tar.gz
puppet-vcsrepo-eaf1e2d77754bc5f9070274f2c4da9409a003208.tar.bz2
Set neg bare test to expect bare repo
-rw-r--r--spec/acceptance/beaker/git/create/negative/create_bare_repo_specifying_revision.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/acceptance/beaker/git/create/negative/create_bare_repo_specifying_revision.rb b/spec/acceptance/beaker/git/create/negative/create_bare_repo_specifying_revision.rb
index 6a12c8c..6cd4f72 100644
--- a/spec/acceptance/beaker/git/create/negative/create_bare_repo_specifying_revision.rb
+++ b/spec/acceptance/beaker/git/create/negative/create_bare_repo_specifying_revision.rb
@@ -22,12 +22,12 @@ hosts.each do |host|
}
EOS
- apply_manifest_on(host, pp, :acceptable_exit_codes => [1])
+ apply_manifest_on(host, pp)
end
- step 'verify repo was NOT created' do
- on(host, "ls -al #{tmpdir}") do |res|
- fail_test "found #{repo_name}" if res.stdout.include? "#{repo_name}"
+ step 'verify repo does not contain .git directory' do
+ on(host, "ls -al #{tmpdir}/#{repo_name}") do |res|
+ fail_test "found .git for #{repo_name}" if res.stdout.include? ".git"
end
end