forked from timfel/ratpack
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
11 additions
and
11 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...Pack.package/RPTestApp.class/instance/handleRequestForCaptureGroupsWithNumber.andWord..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
routes | ||
handleRequestForCaptureGroupsWithNumber: aNumber andWord: aWord | ||
<get: '/captureGroups/number/([\d]+)/word/([\w]+)'> | ||
<get: '/captureGroups/number/(\d+)/word/(\w+)'> | ||
|
||
self dynamicEnvironment at: #number put: aNumber asNumber. | ||
self dynamicEnvironment at: #word put: aWord. |
2 changes: 1 addition & 1 deletion
2
packages/RatPack.package/RPTestApp.class/instance/handleRequestForManySlashes.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
routes | ||
handleRequestForManySlashes | ||
<get: '/thisDoesExist/butDontTakeArguments/even/with/many/Slashes'> | ||
<get: '/thisDoesExist/butDoesntTakeArguments/even/with/many/Slashes'> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/RatPack.package/RPTests.class/instance/testCaptureGroups.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
test - routing | ||
testCaptureGroups | ||
|
||
RPTestHelper get: '/captureGroups/number/1/word/Test' on: app. | ||
self assert: (app dynamicEnvironment at: #number) equals: 1. | ||
RPTestHelper get: '/captureGroups/number/123456789/word/Test' on: app. | ||
self assert: (app dynamicEnvironment at: #number) equals: 123456789. | ||
self assert: (app dynamicEnvironment at: #word) equals: 'Test'. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters