X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=t%2Ftools.t;fp=t%2Ftools.t;h=f871ad07c39a7a221c7062a33b0ed85dbdd4b699;hb=f2005eb5cd6724b2001750178f752e18d8bb6452;hp=45c0e8f994e5543b9a1c20fcf77b7ff8e5020f4e;hpb=096c7331093f3d1c3d820d440d44edb352a31b67;p=gruntmaster-data.git 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';