diff options
author | John Duarte <john.duarte@puppetlabs.com> | 2014-05-11 08:07:10 -0700 |
---|---|---|
committer | John Duarte <john.duarte@puppetlabs.com> | 2014-05-18 11:38:19 -0700 |
commit | eaf1e2d77754bc5f9070274f2c4da9409a003208 (patch) | |
tree | 9b1a98b3bec684687beaf5b520f79adc07ffdb03 | |
parent | ef946812c16f2d5e9d120199378b5ade825740c3 (diff) | |
download | puppet-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.rb | 8 |
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 |