From b8a715f12d3f3d63a68ae7f8a385b2b0d3d939a2 Mon Sep 17 00:00:00 2001 From: Oleksandr Rozumii Date: Sun, 23 Jun 2024 10:58:15 +0100 Subject: [PATCH] Clarify README part about regexp matches in stub cassetes (#221) --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5104ca1..bb085c4 100644 --- a/README.md +++ b/README.md @@ -741,14 +741,13 @@ test "match URL with regular expression" do end test "make sure to properly escape the /" do - # escape /path/to/file - use_cassette :stub, [url: "~r/\/path\/to\/file", body: "Stub Response", status_code: 200] do + use_cassette :stub, [url: "~r/\/path\/to\/file\/without\/trailing\/slash\/does\/not\/work", body: "Stub Response", status_code: 200] do # ... end end test "the sigil delimiter cannot be anything else" do - use_cassette :stub, [url: "~r{this-delimiter-doesn-not-work}", body: "Stub Response", status_code: 200] do + use_cassette :stub, [url: "~r{this-delimiter-does-not-work}", body: "Stub Response", status_code: 200] do # ... end end