Very basic test for new_version_bc
authorGreg Sabino Mullane <[email protected]>
Thu, 11 Feb 2010 03:23:47 +0000 (22:23 -0500)
committerGreg Sabino Mullane <[email protected]>
Thu, 11 Feb 2010 03:23:47 +0000 (22:23 -0500)
t/02_new_version_bc.t [new file with mode: 0644]

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