[dw-free] fix the rest of the console-* tests
[commit: http://hg.dwscoalition.org/dw-free/rev/18fd86911d06]
http://bugs.dwscoalition.org/show_bug.cgi?id=2487
Fix test for the priv console command.
Patch by
kareila.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=2487
Fix test for the priv console command.
Patch by
Files modified:
- t/console-priv.t
--------------------------------------------------------------------------------
diff -r 4717d7c1494e -r 18fd86911d06 t/console-priv.t
--- a/t/console-priv.t Mon Apr 05 08:17:58 2010 -0700
+++ b/t/console-priv.t Mon Apr 05 08:29:12 2010 -0700
@@ -7,8 +7,7 @@ use LJ::Test qw (temp_user temp_comm);
use LJ::Test qw (temp_user temp_comm);
local $LJ::T_NO_COMMAND_PRINT = 1;
-#plan tests => 24;
-plan skip_all => 'Fix this test!';
+plan tests => 24;
my $u = temp_user();
my $u2 = temp_user();
@@ -21,7 +20,7 @@ my $run = sub {
};
is($run->("priv grant admin:* " . $u2->user),
- "error: You are not authorized to run this command.");
+ "error: You are not permitted to grant admin:*");
is($run->("priv_package list"),
"error: You are not authorized to run this command.");
$u->grant_priv("admin", "supporthelp");
--------------------------------------------------------------------------------
