[Bps-public-commit] Prophet branch, master, updated. 21505b9c2b87efd4d0964fd860d1d20c33a672bf

sunnavy at bestpractical.com sunnavy at bestpractical.com
Wed Aug 19 23:37:41 EDT 2009


The branch, master has been updated
       via  21505b9c2b87efd4d0964fd860d1d20c33a672bf (commit)
      from  2d7f97951e3b3a27f728f0735ed8fee72e7ede1c (commit)

Summary of changes:
 t/init.t |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

- Log -----------------------------------------------------------------
commit 21505b9c2b87efd4d0964fd860d1d20c33a672bf
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Thu Aug 20 11:36:28 2009 +0800

    update test: init die if database already exists

diff --git a/t/init.t b/t/init.t
index 3232df6..b8b92f4 100644
--- a/t/init.t
+++ b/t/init.t
@@ -5,8 +5,8 @@ use Prophet::Test tests => 2;
 as_alice {
     my $output = run_command( qw(init) );
     like( $output, qr/Initialized your new Prophet database/, 'init' );
-    $output = run_command( qw(init) );
-    like( $output, qr/Your Prophet database already exists/,
-        'init w/existing replica');
+    ( undef, my $error ) = run_command( qw(init) );
+    like( $error, qr/Your Prophet database already exists/,
+        'init existing replica');
 };
 

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list