Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
fixed bug with Path::Class::File and read_file.
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanwh committed Apr 7, 2009
1 parent 4df71b2 commit cb25e4c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Spreadsheet/Simple/Reader/Excel.pm
Expand Up @@ -28,7 +28,7 @@ sub _build_parser { Spreadsheet::ParseExcel->new }

sub read_file {
my ($self, $file) = @_;
my $wb = $self->parse($file);
my $wb = $self->parse("$file");

return $self->map_document($wb);
}
Expand Down
5 changes: 4 additions & 1 deletion t/101-excel.t
Expand Up @@ -2,8 +2,9 @@
use strict;
use warnings;

use Test::More tests => 1 + 7*2;
use Test::More tests => 1 + 7*4;
use Test::Exception;
use Path::Class 'file';

BEGIN { use_ok "Spreadsheet::Simple" }

Expand All @@ -12,6 +13,8 @@ my $ss = Spreadsheet::Simple->new( format => 'Excel' );
my @files = (
't/data/100-excel.xls',
't/data/100-excel2.xls',
file('t/data/100-excel.xls'),
file('t/data/100-excel2.xls'),
);

foreach my $file (@files) {
Expand Down

0 comments on commit cb25e4c

Please sign in to comment.