|
|
@@ -5,7 +5,7 @@ use Cwd qw{abs_path};
|
|
|
use File::Basename qw{dirname};
|
|
|
use lib abs_path( dirname(__FILE__) . "/../lib" );
|
|
|
|
|
|
-use Test::More 'tests' => 5;
|
|
|
+use Test::More 'tests' => 3;
|
|
|
use Test::Fatal;
|
|
|
use IO::Socket::INET ();
|
|
|
use IO::Socket::SSL ();
|
|
|
@@ -15,21 +15,20 @@ is( exception { require Cpanel::iContact::Provider::IRC; }, undef, 'Module at le
|
|
|
isa_ok( my $bot = Cpanel::iContact::Provider::IRC->new(), "Cpanel::iContact::Provider::IRC" );
|
|
|
my $sent;
|
|
|
{
|
|
|
+ # TODO finish unit test.
|
|
|
no warnings qw{redefine once};
|
|
|
#is( exception { $sent = $bot->send(); }, undef, 'send() did not throw' );
|
|
|
- pass("wha");
|
|
|
}
|
|
|
#ok( $sent, "...and the message appears to have actually sent." );
|
|
|
-pass("dup");
|
|
|
|
|
|
SKIP: {
|
|
|
my $conf_file = abs_path( dirname(__FILE__) . "/../.irctestrc" );
|
|
|
skip "Skipping functional testing, needful not supplied", 1 if !$ENV{'AUTHOR_TESTS'} || !-f $conf_file;
|
|
|
my $test_conf = { Config::Simple->import_from($conf_file)->vars() };
|
|
|
my %args = (
|
|
|
- 'destination' => $test_conf->{'CONTACTIRC'},
|
|
|
- 'subject' => 'My Super cool test notification',
|
|
|
- 'content' => "This is a test of Cpanel::iContact::Provider::IRC. Please Ignore",
|
|
|
+ 'destination' => [ $test_conf->{'CONTACTIRC'} ],
|
|
|
+ 'subject' => 'My Super cool test notification',
|
|
|
+ 'content' => "This is a test of Cpanel::iContact::Provider::IRC. Please Ignore",
|
|
|
);
|
|
|
|
|
|
{
|