1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 15:18:01 +00:00

Add a link to the latest til

This commit is contained in:
jbranchaud
2018-04-17 14:48:33 -05:00
parent 0711b6ec00
commit 570ffe2729

View File

@@ -15,7 +15,8 @@ change or be configurable. The `stub_request` method allows us to use regex.
stub_request(:post, %r|/api/posts|)
```
Using the `%r` regex literal syntax, we are able to avoid escaping all of
the `/` characters in our URI.
Using [the `%r` regex literal
syntax](https://ruby-doc.org/core-2.2.0/Regexp.html), we are able to avoid
escaping all of the `/` characters in our URI.
h/t Brian Dunn