[Bps-public-commit] Prophet branch, master, updated. 0.69_01-30-g2643425
spang at bestpractical.com
spang at bestpractical.com
Tue Sep 1 23:45:09 EDT 2009
The branch, master has been updated
via 2643425822d4fe4609574b707b52f0c3df1e5304 (commit)
from ed7dccb4609470f862122cbb49bbd2e50c57d830 (commit)
Summary of changes:
lib/Prophet/CLI/Command/Config.pm | 1 +
t/aliases.t | 5 ++++-
2 files changed, 5 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 2643425822d4fe4609574b707b52f0c3df1e5304
Author: Christine Spang <spang at bestpractical.com>
Date: Tue Sep 1 23:42:32 2009 -0400
Reload config after editing (needed in shell)
diff --git a/lib/Prophet/CLI/Command/Config.pm b/lib/Prophet/CLI/Command/Config.pm
index fc50854..1ab185c 100644
--- a/lib/Prophet/CLI/Command/Config.pm
+++ b/lib/Prophet/CLI/Command/Config.pm
@@ -99,6 +99,7 @@ sub run {
while ( !$done ) {
$done = $self->try_to_edit( template => \$template );
+ $config->load;
}
}
else {
diff --git a/t/aliases.t b/t/aliases.t
index c99a475..4006d26 100644
--- a/t/aliases.t
+++ b/t/aliases.t
@@ -2,7 +2,7 @@
#
use warnings;
use strict;
-use Prophet::Test tests => 68;
+use Prophet::Test tests => 69;
use File::Temp qw/tempfile/;
( my $_fh, $ENV{'PROPHET_APP_CONFIG'} ) = tempfile(UNLINK => !$ENV{PROPHET_DEBUG});
@@ -227,6 +227,9 @@ Changed alias 'foo' from 'bar baz'to 'sigh'
Deleted alias 'pull -l'
END_OUTPUT
+is( run_command( 'alias', 'foo' ), "sigh\n",
+ 'Reloaded config after edit' );
+
# check with alias show
my $valid_settings_output = Prophet::Util->slurp('t/data/aliases.tmpl');
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list