Set neg bare test to expect bare repo
authorJohn Duarte <john.duarte@puppetlabs.com>
Sun, 11 May 2014 15:07:10 +0000 (08:07 -0700)
committerJohn Duarte <john.duarte@puppetlabs.com>
Sun, 18 May 2014 18:38:19 +0000 (11:38 -0700)
spec/acceptance/beaker/git/create/negative/create_bare_repo_specifying_revision.rb

index 6a12c8c..6cd4f72 100644 (file)
@@ -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