summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Sabino Mullane2011-02-09 18:06:22 +0000
committerGreg Sabino Mullane2011-02-09 18:06:22 +0000
commitecde6797f07c623a0df2529670698135c427bf31 (patch)
tree7adb2329f20d7b16e9e8c644056042413f1369d3
parent4c3d6aab209dce8b3b5e9068b283dcbef78b6292 (diff)
New test stub.
-rw-r--r--t/02_new_version_tnm.t27
1 files changed, 27 insertions, 0 deletions
diff --git a/t/02_new_version_tnm.t b/t/02_new_version_tnm.t
new file mode 100644
index 000000000..a03c0b269
--- /dev/null
+++ b/t/02_new_version_tnm.t
@@ -0,0 +1,27 @@
+#!perl
+
+## Test the "new_version_tnm" action
+
+use 5.006;
+use strict;
+use warnings;
+use Data::Dumper;
+use Test::More tests => 1;
+use lib 't','.';
+use CP_Testing;
+
+use vars qw/$dbh $t/;
+
+my $cp = CP_Testing->new( {default_action => 'new_version_tnm'} );
+
+$dbh = $cp->test_database_handle();
+
+my $S = q{Action 'new_version_tnm'};
+my $label = 'POSTGRES_NEW_VERSION_TNM';
+
+$t=qq{$S fails when called with an invalid option};
+like ($cp->run('foobar=12'), qr{^\s*Usage:}, $t);
+
+## No other tests for now
+
+exit;