From: Alastair McGowan-Douglas Date: Mon, 29 Sep 2014 08:26:05 +0000 (+0100) Subject: tidy up cargo-culted stuff X-Git-Tag: v0.33~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Plugin-Static-Simple.git;a=commitdiff_plain;h=ede41de668c22c0b4e8270f01f2274302889dd4f tidy up cargo-culted stuff --- diff --git a/t/lib/IncTestApp/Controller/Root.pm b/t/lib/IncTestApp/Controller/Root.pm index 21948c0..00b761d 100644 --- a/t/lib/IncTestApp/Controller/Root.pm +++ b/t/lib/IncTestApp/Controller/Root.pm @@ -8,38 +8,4 @@ use base qw/Catalyst::Controller/; __PACKAGE__->config(namespace => ''); -sub default : Private { - my ( $self, $c ) = @_; - - $c->res->output( 'default' ); -} - -sub subtest : Local { - my ( $self, $c ) = @_; - - $c->res->output( $c->subreq('/subtest2') ); -} - -sub subtest2 : Local { - my ( $self, $c ) = @_; - - $c->res->output( 'subtest2 ok' ); -} - -sub serve_static : Local { - my ( $self, $c ) = @_; - - my $file = catfile( $FindBin::Bin, 'lib', 'TestApp.pm' ); - - $c->serve_static_file( $file ); -} - -sub serve_static_404 : Local { - my ( $self, $c ) = @_; - - my $file = catfile( $FindBin::Bin, 'lib', 'foo.pm' ); - - $c->serve_static_file( $file ); -} - 1; diff --git a/t/lib/IncTestApp/root/always-static/test b/t/lib/IncTestApp/root/always-static/test deleted file mode 100644 index 9eb0ae4..0000000 --- a/t/lib/IncTestApp/root/always-static/test +++ /dev/null @@ -1 +0,0 @@ -I am a text file! diff --git a/t/lib/IncTestApp/root/always-static/test.html b/t/lib/IncTestApp/root/always-static/test.html deleted file mode 100644 index 18ed998..0000000 --- a/t/lib/IncTestApp/root/always-static/test.html +++ /dev/null @@ -1,8 +0,0 @@ - - - test - - -
test
- - diff --git a/t/lib/IncTestApp/root/css/static.css b/t/lib/IncTestApp/root/css/static.css deleted file mode 100644 index de57cdb..0000000 --- a/t/lib/IncTestApp/root/css/static.css +++ /dev/null @@ -1,3 +0,0 @@ -body { - background: #fff; -} diff --git a/t/lib/IncTestApp/root/files/bad.gif b/t/lib/IncTestApp/root/files/bad.gif deleted file mode 100644 index de57cdb..0000000 --- a/t/lib/IncTestApp/root/files/bad.gif +++ /dev/null @@ -1,3 +0,0 @@ -body { - background: #fff; -} diff --git a/t/lib/IncTestApp/root/files/empty.txt b/t/lib/IncTestApp/root/files/empty.txt deleted file mode 100644 index e69de29..0000000 diff --git a/t/lib/IncTestApp/root/files/err.omg b/t/lib/IncTestApp/root/files/err.omg deleted file mode 100644 index de57cdb..0000000 --- a/t/lib/IncTestApp/root/files/err.omg +++ /dev/null @@ -1,3 +0,0 @@ -body { - background: #fff; -} diff --git a/t/lib/IncTestApp/root/files/space file.txt b/t/lib/IncTestApp/root/files/space file.txt deleted file mode 100644 index de57cdb..0000000 --- a/t/lib/IncTestApp/root/files/space file.txt +++ /dev/null @@ -1,3 +0,0 @@ -body { - background: #fff; -} diff --git a/t/lib/IncTestApp/root/files/static.css b/t/lib/IncTestApp/root/files/static.css deleted file mode 100644 index de57cdb..0000000 --- a/t/lib/IncTestApp/root/files/static.css +++ /dev/null @@ -1,3 +0,0 @@ -body { - background: #fff; -} diff --git a/t/lib/IncTestApp/root/ignored/bad.gif b/t/lib/IncTestApp/root/ignored/bad.gif deleted file mode 100644 index de57cdb..0000000 --- a/t/lib/IncTestApp/root/ignored/bad.gif +++ /dev/null @@ -1,3 +0,0 @@ -body { - background: #fff; -} diff --git a/t/lib/IncTestApp/root/ignored/index.html b/t/lib/IncTestApp/root/ignored/index.html deleted file mode 100644 index de57cdb..0000000 --- a/t/lib/IncTestApp/root/ignored/index.html +++ /dev/null @@ -1,3 +0,0 @@ -body { - background: #fff; -} diff --git a/t/lib/IncTestApp/root/ignored/static.css b/t/lib/IncTestApp/root/ignored/static.css deleted file mode 100644 index de57cdb..0000000 --- a/t/lib/IncTestApp/root/ignored/static.css +++ /dev/null @@ -1,3 +0,0 @@ -body { - background: #fff; -} diff --git a/t/lib/IncTestApp/root/ignored/tmpl.tt b/t/lib/IncTestApp/root/ignored/tmpl.tt deleted file mode 100644 index de57cdb..0000000 --- a/t/lib/IncTestApp/root/ignored/tmpl.tt +++ /dev/null @@ -1,3 +0,0 @@ -body { - background: #fff; -} diff --git a/t/lib/IncTestApp/root/images/catalyst.png b/t/lib/IncTestApp/root/images/catalyst.png deleted file mode 100644 index 464e512..0000000 Binary files a/t/lib/IncTestApp/root/images/catalyst.png and /dev/null differ diff --git a/t/lib/IncTestApp/root/incpath/incpath.css b/t/lib/IncTestApp/root/incpath/incpath.css deleted file mode 100644 index de57cdb..0000000 --- a/t/lib/IncTestApp/root/incpath/incpath.css +++ /dev/null @@ -1,3 +0,0 @@ -body { - background: #fff; -} diff --git a/t/lib/IncTestApp/root/overlay/o-ignored/bad.gif b/t/lib/IncTestApp/root/overlay/o-ignored/bad.gif deleted file mode 100644 index de57cdb..0000000 --- a/t/lib/IncTestApp/root/overlay/o-ignored/bad.gif +++ /dev/null @@ -1,3 +0,0 @@ -body { - background: #fff; -} diff --git a/t/lib/IncTestApp/root/overlay/o-ignored/index.html b/t/lib/IncTestApp/root/overlay/o-ignored/index.html deleted file mode 100644 index de57cdb..0000000 --- a/t/lib/IncTestApp/root/overlay/o-ignored/index.html +++ /dev/null @@ -1,3 +0,0 @@ -body { - background: #fff; -} diff --git a/t/lib/IncTestApp/root/overlay/o-ignored/static.css b/t/lib/IncTestApp/root/overlay/o-ignored/static.css deleted file mode 100644 index de57cdb..0000000 --- a/t/lib/IncTestApp/root/overlay/o-ignored/static.css +++ /dev/null @@ -1,3 +0,0 @@ -body { - background: #fff; -} diff --git a/t/lib/IncTestApp/root/overlay/o-ignored/tmpl.tt b/t/lib/IncTestApp/root/overlay/o-ignored/tmpl.tt deleted file mode 100644 index de57cdb..0000000 --- a/t/lib/IncTestApp/root/overlay/o-ignored/tmpl.tt +++ /dev/null @@ -1,3 +0,0 @@ -body { - background: #fff; -}