[Bps-public-commit] Prophet branch, master, updated. 0.69_01-39-g91e23ea

sunnavy at bestpractical.com sunnavy at bestpractical.com
Thu Sep 3 11:15:18 EDT 2009


The branch, master has been updated
       via  91e23eafc9923049b833c6a87ccebb8c0c412e39 (commit)
      from  3b296ead8020905b92da059bdbf98b1e2eea4301 (commit)

Summary of changes:
 t/aliases_with_quotes.t |   15 +--------------
 1 files changed, 1 insertions(+), 14 deletions(-)

- Log -----------------------------------------------------------------
commit 91e23eafc9923049b833c6a87ccebb8c0c412e39
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Thu Sep 3 23:15:03 2009 +0800

    update aliases_with_quotes test: the unbalanced test is fake and wrong

diff --git a/t/aliases_with_quotes.t b/t/aliases_with_quotes.t
index 4f5c818..3dd2e25 100644
--- a/t/aliases_with_quotes.t
+++ b/t/aliases_with_quotes.t
@@ -2,7 +2,7 @@
 #
 use warnings;
 use strict;
-use Prophet::Test tests => 18;
+use Prophet::Test tests => 13;
 
 as_alice {
     run_command('init');
@@ -31,17 +31,6 @@ as_alice {
             comment => 'show empty aliases',
         },
         {
-            cmd     => [ 'add', 'unbalanced = one"double' ],
-            comment => 'add a new alias',
-
-            # no output specified = no output expected
-        },
-        {
-            cmd     => ['unbalanced'],
-            output  => qr/one"double/,
-            comment => 'new alias set correctly',
-        },
-        {
 
             # this alias is bad, please don't use it in real life
             cmd => [ 'add', 'balanced_1=search --type Bug -- summary="foo bar"' ],
@@ -66,8 +55,6 @@ as_alice {
         like( $got_error,  $exp_error,  $item->{comment} . ' (STDERR)' );
     }
 
-    ( $output, $error ) = run_command('unbalanced');
-    like( $error, qr/unbalanced quote/, 'unbalanced quote got error' );
     ($output, $error) = run_command(qw/search --type Bug -- summary/, 'foo bar' );
     ($output) = run_command('balanced_1');
     like( $output, qr/$bug_id/, 'quote in aliase like --summary="foo bar"' );

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



More information about the Bps-public-commit mailing list