mirror of
https://github.com/jbranchaud/til
synced 2026-01-07 00:58:02 +00:00
Add a link to the latest til
This commit is contained in:
@@ -15,7 +15,8 @@ change or be configurable. The `stub_request` method allows us to use regex.
|
|||||||
stub_request(:post, %r|/api/posts|)
|
stub_request(:post, %r|/api/posts|)
|
||||||
```
|
```
|
||||||
|
|
||||||
Using the `%r` regex literal syntax, we are able to avoid escaping all of
|
Using [the `%r` regex literal
|
||||||
the `/` characters in our URI.
|
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
|
h/t Brian Dunn
|
||||||
|
|||||||
Reference in New Issue
Block a user