Permalink
Browse files

Use a release id that exists and save the mock json

  • Loading branch information...
1 parent 7283d07 commit e7da6c45352f8cc10ebfa6c531f2ce88168be82e @leto leto committed Oct 11, 2012
Showing with 4 additions and 1 deletion.
  1. +3 −1 t/002_find_available_artwork.t
  2. +1 −0 t/data/76df3287-6cda-33eb-8e9a-044b5e15ffdd.json
@@ -7,10 +7,12 @@ use Data::Dumper;
plan;
+my $release_id = '76df3287-6cda-33eb-8e9a-044b5e15ffdd';
+
my $caa = Net::CoverArtArchive->new;
lives_ok( sub {
- my $all_artwork = $caa->find_available_artwork('4331ea73-77e1-3213-a840-5e4e74180f93');
+ my $all_artwork = $caa->find_available_artwork($release_id);
}, 'find_available_artwork lives');
done_testing;
@@ -0,0 +1 @@
+{"images":[{"types":["Front"],"front":true,"back":false,"edit":17462565,"image":"http://coverartarchive.org/release/76df3287-6cda-33eb-8e9a-044b5e15ffdd/829521842.jpg","comment":"","approved":true,"thumbnails":{"large":"http://coverartarchive.org/release/76df3287-6cda-33eb-8e9a-044b5e15ffdd/829521842-500.jpg","small":"http://coverartarchive.org/release/76df3287-6cda-33eb-8e9a-044b5e15ffdd/829521842-250.jpg"},"id":"829521842"}],"release":"http://musicbrainz.org/release/76df3287-6cda-33eb-8e9a-044b5e15ffdd"}

0 comments on commit e7da6c4

Please sign in to comment.