Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (16 sloc) 335 Bytes
# $Id$
use strict;
use Test::More tests => 1;
use Encode;
use XML::Atom::Entry;
my $file = "t/samples/me.jpg";
my $data = slurp($file);
my $entry = XML::Atom::Entry->new;
$entry->content($data);
ok( $data eq $entry->content->body );
sub slurp {
my $file = shift;
open my$fh, $file or die $!;
local $/;
<$fh>;
}