Permalink
Browse files

fixed failing tests with empty env.ini & re-enabled

  • Loading branch information...
majuscule committed Feb 19, 2013
1 parent bab884e commit f5ccdbfda39ac6198e56fd7a5bbaa95d130caace
Showing with 7 additions and 7 deletions.
  1. +7 −7 t/system_duckpan_env.t
View
@@ -30,12 +30,8 @@ sub grepEnv {
}
callDuckPAN($test_var, $test_val);
-#grepEnv($test_var, $test_val, "$test_var = $test_val", 1,
-# 'added new environment variable to ~/.duckpan/env.ini');
-
-callDuckPAN('rm', $test_var);
-grepEnv($test_var, $test_val, "$test_var = $test_val", 0,
- 'deleted new environment variable from ~/.duckpan/env.ini');
+grepEnv($test_var, $test_val, "$test_var = $test_val", 1,
+ 'added new environment variable to ~/.duckpan/env.ini');
my ($return, $out, $err) = callDuckPAN();
open my $ini, '<', $config_file;
@@ -45,8 +41,12 @@ my $usage = "Usage:\n"
. " add ENV:\tduckpan env <name> <value>\n"
. " get ENV:\tduckpan env <name>\n"
. " remove ENV:\tduckpan rm <name>\n";
-#is($out, $expected, 'got current env variables from `duckpan show`');
+is($out, $expected, 'got current env variables from `duckpan show`');
is($err, $usage, 'got usage from `duckpan show` on stderr');
close $ini;
+callDuckPAN('rm', $test_var);
+grepEnv($test_var, $test_val, "$test_var = $test_val", 0,
+ 'deleted new environment variable from ~/.duckpan/env.ini');
+
done_testing;

0 comments on commit f5ccdbf

Please sign in to comment.