LinkEmbedder
view release on metacpan or search on metacpan
t/mojopaste.t view on Meta::CPAN
use Mojo::Base -strict;
use Test::More;
use LinkEmbedder;
plan skip_all => 'TEST_ONLINE=1' unless $ENV{TEST_ONLINE};
plan skip_all => 'cpanm IO::Socket::SSL' unless LinkEmbedder::TLS;
LinkEmbedder->new->test_ok(
'https://p.thorsen.pm/3808406ec6f6' => {
cache_age => 0,
html => qr{<pre><test>paste!</test></pre>},
isa => 'LinkEmbedder::Link::Basic',
provider_name => 'Thorsen',
provider_url => 'https://p.thorsen.pm/',
title => qr{ - Mojopaste},
type => 'rich',
url => 'https://p.thorsen.pm/3808406ec6f6',
version => '1.0',
}
);
done_testing;
( run in 3.319 seconds using v1.01-cache-2.11-cpan-437f7b0c052 )