From eccf8ca2b1d6625a2d17d12ab2f0dbc5d49fac75 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 16 Jan 2014 14:57:00 +0100 Subject: Move EFA logic to ::EFA, just set URL in ::VRR --- t/20-vrr.t | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 't/20-vrr.t') diff --git a/t/20-vrr.t b/t/20-vrr.t index edd7f0b..54d5ad1 100644 --- a/t/20-vrr.t +++ b/t/20-vrr.t @@ -13,6 +13,7 @@ require_ok('Travel::Routing::DE::VRR'); sub efa_conf { my $ret = { + efa_url => 'http://efa.vrr.de/vrr/XSLT_TRIP_REQUEST2', origin => ['Essen', 'HBf'], destination => ['Koeln', 'HBf'], lwp_options => {}, @@ -178,40 +179,40 @@ is_efa_post( is_efa_err( 'departure_time', '37:00', - 'Travel::Routing::DE::VRR::Exception::Setup', + 'Travel::Routing::DE::EFA::Exception::Setup', ); is_efa_err( 'departure_time', '07', - 'Travel::Routing::DE::VRR::Exception::Setup', + 'Travel::Routing::DE::EFA::Exception::Setup', ); is_efa_err( 'train_type', 'invalid', - 'Travel::Routing::DE::VRR::Exception::Setup', + 'Travel::Routing::DE::EFA::Exception::Setup', ); is_efa_err( 'walk_speed', 'invalid', - 'Travel::Routing::DE::VRR::Exception::Setup', + 'Travel::Routing::DE::EFA::Exception::Setup', ); is_efa_err( 'select_interchange_by', 'invalid', - 'Travel::Routing::DE::VRR::Exception::Setup', + 'Travel::Routing::DE::EFA::Exception::Setup', ); is_efa_err( 'exclude', [qw[sonstige invalid]], - 'Travel::Routing::DE::VRR::Exception::Setup', + 'Travel::Routing::DE::EFA::Exception::Setup', ); is_efa_err( 'date', '42.5.2003', - 'Travel::Routing::DE::VRR::Exception::Setup', + 'Travel::Routing::DE::EFA::Exception::Setup', ); is_efa_err( 'date', '7.', - 'Travel::Routing::DE::VRR::Exception::Setup', + 'Travel::Routing::DE::EFA::Exception::Setup', ); -- cgit v1.2.3