New test stub.
authorGreg Sabino Mullane <[email protected]>
Wed, 9 Feb 2011 18:06:22 +0000 (13:06 -0500)
committerGreg Sabino Mullane <[email protected]>
Wed, 9 Feb 2011 18:06:22 +0000 (13:06 -0500)
t/02_new_version_tnm.t [new file with mode: 0644]

diff --git a/t/02_new_version_tnm.t b/t/02_new_version_tnm.t
new file mode 100644 (file)
index 0000000..a03c0b2
--- /dev/null
@@ -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;