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
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' );
}
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'
);
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,
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'
);