From f2005eb5cd6724b2001750178f752e18d8bb6452 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sun, 12 Apr 2015 23:11:59 +0300 Subject: [PATCH] Add gm -p show test --- t/tools.t | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/t/tools.t b/t/tools.t index 45c0e8f..f871ad0 100644 --- a/t/tools.t +++ b/t/tools.t @@ -10,7 +10,7 @@ BEGIN { eval { Gruntmaster::Data::init 'dbi:Pg:dbname=gmtest'; 1; } or plan skip_all => 'Cannot connect to test database. Create it by running make_test_db.sh before running this test. '. "Error: $@"; - plan tests => 29; + plan tests => 30; } sub fakein { @@ -78,6 +78,11 @@ EOF ta [qw/-p add pb/]; +{ + my $out = ta([qw/-p show pb/])->output; + like $out, qr/Value \(points\): 250/, 'gm -p show pb contains Value' +} + subtest 'gruntmaster-problem add' => sub { plan tests => 10; my $pb = problem_entry 'pb'; -- 2.39.2