X-Git-Url: http://erislabs.net/gitweb/?p=libwww-opensearch-perl.git;a=blobdiff_plain;f=t%2F11-url.t;fp=t%2F11-url.t;h=4f90fbe32116ac62a3d4534cc5972e9405c26241;hp=69ce83379ed534dbb6034279202cb73eef5e422e;hb=70fa825da53bce7cee2d56a3a9d3cbeb2b4c7076;hpb=85d58c49caf33a66fdee3b54c6fda4981c7a8d47 diff --git a/t/11-url.t b/t/11-url.t index 69ce833..4f90fbe 100644 --- a/t/11-url.t +++ b/t/11-url.t @@ -24,7 +24,7 @@ use_ok( 'WWW::OpenSearch::Url' ); isa_ok( $url, 'WWW::OpenSearch::Url' ); is( $url->type, 'application/rss+xml', 'content type' ); is( lc $url->method, 'get', 'method' ); - is( $url->template, + is( $url->template->template, 'http://example.com/?q={searchTerms}&pw={startPage}&format=rss', 'template' ); my $result @@ -60,7 +60,7 @@ use_ok( 'WWW::OpenSearch::Url' ); isa_ok( $url, 'WWW::OpenSearch::Url' ); is( $url->type, 'application/rss+xml', 'content type' ); is( lc $url->method, 'get', 'method' ); - is( $url->template, + is( $url->template->template, 'http://example.com/?q={searchTerms}&pw={startPage}&format=rss', 'template' ); } @@ -70,7 +70,7 @@ use_ok( 'WWW::OpenSearch::Url' ); isa_ok( $url, 'WWW::OpenSearch::Url' ); is( $url->type, 'application/atom+xml', 'content type' ); is( lc $url->method, 'get', 'method' ); - is( $url->template, + is( $url->template->template, 'http://example.com/?q={searchTerms}&pw={startPage}&format=atom', 'template' ); @@ -81,7 +81,7 @@ use_ok( 'WWW::OpenSearch::Url' ); isa_ok( $url, 'WWW::OpenSearch::Url' ); is( $url->type, 'text/html', 'content type' ); is( lc $url->method, 'post', 'method' ); - is( $url->template, 'https://intranet/search?format=html', + is( $url->template->template, 'https://intranet/search?format=html', 'template' ); is_deeply( $url->params, @@ -128,7 +128,7 @@ use_ok( 'WWW::OpenSearch::Url' ); my ( $url ) = $osd->urls; isa_ok( $url, 'WWW::OpenSearch::Url' ); is( lc $url->method, 'get', 'method' ); - is( $url->template, + is( $url->template->template, 'http://www.unto.net/aws?q={searchTerms}&searchindex=Electronics&flavor=osrss&itempage={startPage}', 'template' );