]> iEval git - www-offliberty.git/blame_incremental - t/50-network.t
Relax tests
[www-offliberty.git] / t / 50-network.t
... / ...
CommitLineData
1#!/usr/bin/perl
2use strict;
3use warnings;
4
5use Test::RequiresInternet 'offliberty.com' => 80;
6use Test::More tests => 4;
7use WWW::Offliberty qw/off/;
8
9my @results;
10@results = off 'https://vimeo.com/45196609';
11cmp_ok @results, '>=', 1, 'vimeo';
12
13@results = off 'https://vimeo.com/45196609', video_file => 1;
14cmp_ok @results, '>=', 1, 'vimeo, video_file => 1';
15
16my $allresults = join ' ', @results;
17like $allresults, qr/\.mp4/, 'some URL contains ".mp4"';
18unlike $allresults, qr/offwarning/, 'no URL contains "offwarning"';
This page took 0.020316 seconds and 4 git commands to generate.