From: Vladimir Timofeev Date: Thu, 10 Jun 2010 17:11:25 +0000 (+0400) Subject: fix tests X-Git-Tag: 0.09~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=bd14b771173cf41e3656e9705e026e91ececb610;p=catagits%2FCatalyst-View-Component-SubInclude.git fix tests 1. fix tests by properly quote regexp and notify trailing spaces 2. fix tests for previous change in SSI plugin --- diff --git a/t/app.t b/t/app.t index 0f4c0d4..ad28c11 100644 --- a/t/app.t +++ b/t/app.t @@ -8,76 +8,75 @@ use Catalyst::Test 'ESITest'; like get('/'), qr{SubInclude test: will include /time_include using default plugin Catalyst::View::Component::SubInclude::Visit
-Current time is: [\w\s:]+ --> | foo = bar | +Current time is: [\w\s:]+ --> \| foo = bar \|\s*
-Current time is: [\w\s:]+ --> Capture Arg: test| baz = quux | +Current time is: [\w\s:]+ --> Capture Arg: test\| baz = quux \|\s*


Test subinclude using specific plugins:
-Current time is: [\w\s:]+ --> | plugin = SubRequest | +Current time is: [\w\s:]+ --> \| plugin = SubRequest \|\s*
-Current time is: [\w\s:]+ --> | plugin = Visit | +Current time is: [\w\s:]+ --> \| plugin = Visit \|\s*
-
-
-
+
+


-Test CaptureArgs and Args interaction (SubRequest):

+Test CaptureArgs and Args interaction \(SubRequest\):

-Current time is: [\w\s:]+ --> Capture Arg: capture_argtest | query_arg = val | Action Arg: regular_arg +Current time is: [\w\s:]+ --> Capture Arg: capture_argtest \| query_arg = val \| Action Arg: regular_arg\s*
-(using: http://localhost/capture_argtest/time/regular_arg?query_arg=val)
+\(using: http://localhost/capture_argtest/time/regular_arg\?query_arg=val\)

-Current time is: [\w\s:]+ --> | query_arg = val | Action Arg: regular_arg +Current time is: [\w\s:]+ --> \| query_arg = val \| Action Arg: regular_arg\s*
-(using: http://localhost/time/regular_arg?query_arg=val)
+\(using: http://localhost/time/regular_arg\?query_arg=val\)


-Test CaptureArgs and Args interaction (Visit):

+Test CaptureArgs and Args interaction \(Visit\):

-Current time is: [\w\s:]+ --> Capture Arg: capture_argtest | query_arg = val | Action Arg: regular_arg +Current time is: [\w\s:]+ --> Capture Arg: capture_argtest \| query_arg = val \| Action Arg: regular_arg\s*
-(using: http://localhost/capture_argtest/time/regular_arg?query_arg=val)
+\(using: http://localhost/capture_argtest/time/regular_arg\?query_arg=val\)

-Current time is: [\w\s:]+ --> | query_arg = val | Action Arg: regular_arg +Current time is: [\w\s:]+ --> \| query_arg = val \| Action Arg: regular_arg\s*
-(using: http://localhost/time/regular_arg?query_arg=val)
+\(using: http://localhost/time/regular_arg\?query_arg=val\)


-Test CaptureArgs and Args interaction (ESI):

+Test CaptureArgs and Args interaction \(ESI\):

-
-(using: http://localhost/capture_argtest/time/regular_arg?query_arg=val)
+
+\(using: http://localhost/capture_argtest/time/regular_arg\?query_arg=val\)

-
-(using: http://localhost/time/regular_arg?query_arg=val)
+
+\(using: http://localhost/time/regular_arg\?query_arg=val\)


-Test CaptureArgs and Args interaction (SSI):

+Test CaptureArgs and Args interaction \(SSI\):

-
-(using: http://localhost/capture_argtest/time/regular_arg?query_arg=val)
+
+\(using: http://localhost/capture_argtest/time/regular_arg\?query_arg=val\)

-
-(using: http://localhost/time/regular_arg?query_arg=val)
+
+\(using: http://localhost/time/regular_arg\?query_arg=val\)



Test Args when Chained is not being used: -Current time is: [\w\s:]+ --> | query_arg = val | No Chained Args: regular_arg1, regular_arg2 +Current time is: [\w\s:]+ --> \| query_arg = val \| No Chained Args: regular_arg1, regular_arg2
-(using: http://localhost/time_args_no_chained/regular_arg1/regular_arg2?query_arg=val)
+\(using: http://localhost/time_args_no_chained/regular_arg1/regular_arg2\?query_arg=val\)
}; done_testing;