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 {
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';