From 375fc4b815d6cf69c5d268dd1156df29045d1da1 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 22 Jan 2014 23:25:32 +0100 Subject: URA: Remove new_from_raw test constructor, accept file: URLs change tests accordingly --- t/21-get-stop-by-name.t | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 't/21-get-stop-by-name.t') diff --git a/t/21-get-stop-by-name.t b/t/21-get-stop-by-name.t index 43952ac..48cd3a7 100644 --- a/t/21-get-stop-by-name.t +++ b/t/21-get-stop-by-name.t @@ -5,18 +5,17 @@ use 5.010; use utf8; use Encode qw(decode); -use File::Slurp qw(slurp); use List::Util qw(first); use Test::More tests => 5; BEGIN { - use_ok('Travel::Status::DE::ASEAG'); + use_ok('Travel::Status::DE::URA'); } -require_ok('Travel::Status::DE::ASEAG'); +require_ok('Travel::Status::DE::URA'); -my $rawstr = slurp('t/in/aseag_20131223T132300'); -my $s = Travel::Status::DE::ASEAG->new_from_raw( - raw_str => $rawstr, +my $s = Travel::Status::DE::URA->new( + ura_base => 'file:t/in', + ura_version => 1, hide_past => 0 ); -- cgit v1.2.3