From: Marius Gavrilescu Date: Sun, 12 Apr 2015 20:11:59 +0000 (+0300) Subject: Add gm -p show test X-Git-Tag: 5999.000_014~20 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;ds=sidebyside;h=f2005eb5cd6724b2001750178f752e18d8bb6452;p=gruntmaster-data.git Add gm -p show test --- 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';