diff options
author | Greg Sabino Mullane | 2010-02-11 03:23:47 +0000 |
---|---|---|
committer | Greg Sabino Mullane | 2010-02-11 03:23:47 +0000 |
commit | fa4e10dc529871967a6bebd3701f501b43748fdb (patch) | |
tree | 8338497cd97bcbe65b01cc1af7267cf83b39f6f6 | |
parent | c44f58e852552182cac8c1956951975f08e853e4 (diff) |
Very basic test for new_version_bc
-rw-r--r-- | t/02_new_version_bc.t | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/t/02_new_version_bc.t b/t/02_new_version_bc.t new file mode 100644 index 000000000..f6aff082a --- /dev/null +++ b/t/02_new_version_bc.t @@ -0,0 +1,27 @@ +#!perl + +## Test the "new_version_bc" 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_bc'} ); + +$dbh = $cp->test_database_handle(); + +my $S = q{Action 'new_version_bc'}; +my $label = 'POSTGRES_NEW_VERSION_BC'; + +$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; |