File: 02-c-a-rest-compat.t

package info (click to toggle)
libcatalyst-plugin-smarturi-perl 0.041-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 156 kB
  • sloc: perl: 285; makefile: 2
file content (20 lines) | stat: -rw-r--r-- 371 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!perl

use strict;
use warnings;
use Test::More tests => 1;
use FindBin '$Bin';
use lib "$Bin/lib";
use Catalyst::Test 'TestApp';

SKIP: {

skip 'Catalyst::Action::REST not installed', 1
    if eval { require Catalyst::Action::REST }, $@;

is(get('/foo'), '/foo?foo=bar',
    'C::A::REST and SmartURI are both functional');

}

# vim: expandtab shiftwidth=4 ts=4 tw=80: