From a9a0fae053b681c089dc136ff3063005f6867dcd Mon Sep 17 00:00:00 2001 From: Steve Polito Date: Fri, 4 Apr 2025 12:47:16 -0400 Subject: [PATCH] Rails: Prefer webmock over VCR Cassettes are tricky to maintain and are often fragile. Using webmock allows for more fine-grained control. Additionally, VCR risks leaking [sensitive data][]. [sensitive data]: https://benoittgt.github.io/vcr/#/configuration/filter_sensitive_data --- rails/README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rails/README.md b/rails/README.md index 49de6413..65e33eaa 100644 --- a/rails/README.md +++ b/rails/README.md @@ -146,6 +146,13 @@ others' Rails work, look in particular for: [ActiveStorage]: https://guides.rubyonrails.org/active_storage_overview.html +## Testing + +- Prefer [webmock][] over [VCR][]. + +[webmock]: https://github.com/webmock/webmock +[VCR]: https://github.com/vcr/vcr + ## How To Guides - [Start a New Rails App](./how-to/start_a_new_rails_app.md)