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