diff options
author | Greg Sabino Mullane | 2011-02-09 18:06:22 +0000 |
---|---|---|
committer | Greg Sabino Mullane | 2011-02-09 18:06:22 +0000 |
commit | ecde6797f07c623a0df2529670698135c427bf31 (patch) | |
tree | 7adb2329f20d7b16e9e8c644056042413f1369d3 | |
parent | 4c3d6aab209dce8b3b5e9068b283dcbef78b6292 (diff) |
New test stub.
-rw-r--r-- | t/02_new_version_tnm.t | 27 |
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; |