Bump version and update Changes
[music-tag-coveralia.git] / t / Music-Tag-Coveralia.t
CommitLineData
0feded2e
MG
1#!/usr/bin/perl
2use strict;
3use warnings;
4
5use Test::RequiresInternet qw/www.coveralia.com 80/;
6use Test::More tests => 3;
7use Music::Tag traditional => 1;
8BEGIN { use_ok('Music::Tag::Coveralia') };
9
10sub test {
11 my ($artist, $album, $expect) = @_;
12 my $mt = Music::Tag->new('t/empty.flac', {$ENV{TEST_VERBOSE} ? (verbose => 1) : (quiet => 1)});
13 $mt->artist($artist);
14 $mt->album($album);
15 $mt->add_plugin('Coveralia');
16 $mt->get_tag;
17 my $exists = $expect ? 'exists' : 'does not exist';
18 is $mt->has_data('picture'), $expect, "$artist - $album $exists"
19}
20
21test 'Metallica', 'Ride The Lightning', 1;
22test 'Metal', 'Ride The Lightning', 0;
This page took 0.011004 seconds and 4 git commands to generate.