File: 11_useragent.t

package info (click to toggle)
libnet-twitter-perl 4.01005-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 760 kB
  • ctags: 107
  • sloc: perl: 6,441; makefile: 13
file content (15 lines) | stat: -rw-r--r-- 308 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!perl

use warnings;
use strict;

use Test::More tests => 3;
use Test::Fatal;

use_ok 'Net::Twitter';

my $nt;
is exception { $nt = Net::Twitter->new(ssl => 0, useragent_args => { timeout => 20 }) }, undef,
         'object creation with useragent_args';

is $nt->ua->timeout, 20, 'useragent_args applied';