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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user