---
title: "#rspec articles | Hashnode"
description: "Explore 29 articles tagged #rspec on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/rspec"
---

Tag

# #rspec

29 posts · 9 followers

[ZeroDrop](https://hashnode.com/@zerodrop) · [Aug 3](https://hashnode.com/posts/rspec-email-testing-without-mailcatcher/6a7112fe2a90e09faa18e149)

### [RSpec Email Testing Without MailCatcher](https://zerodrop.hashnode.dev/rspec-email-testing-without-mailcatcher?utm_source=hashnode&utm_medium=feed)

Test signup, OTP, and magic-link flows in RSpec with no local mail server. No MailCatcher daemon, no regex — just real email verification in CI.

6 min read · [zerodrop.hashnode.dev](https://zerodrop.hashnode.dev/rspec-email-testing-without-mailcatcher?utm_source=hashnode&utm_medium=feed)

[Tenzin Chemi](https://hashnode.com/@imechemi) · [Dec 17, 2025](https://hashnode.com/posts/gotcha-request-spec/69429a21674f0520b82f87e3)

### [Gotcha: Request spec](https://tenzinchemi.in/gotcha-request-spec?utm_source=hashnode&utm_medium=feed)

You may have faced this issue where { key: false } was treated as { “key”: “false” } when writing request specs in rails application development. Request params need to be passed as json along with content-type header in order for the Rails API to ca...

1 min read · [tenzinchemi.in](https://tenzinchemi.in/gotcha-request-spec?utm_source=hashnode&utm_medium=feed)

[Thomas Brennetot](https://hashnode.com/@Damax) · [Nov 25, 2025](https://hashnode.com/posts/rspec-and-capybara-how-to-use-regex-or-stop-caring-about-whitespaces/692574a9afcbc3c08e358224)

### [Rspec and Capybara: how to use regex or stop caring about whitespaces](https://blog.brennetot.com/rspec-and-capybara-how-to-use-regex-or-stop-caring-about-whitespaces?utm_source=hashnode&utm_medium=feed)

I recently updated from Slim template to ERB to use Herb (Thanks Marco). I had to update a test that was very strict on the format. I realized that Capybara::Node::Simple doesn’t provide a selector for regex. The page object doesn’t have a match? met...

1 min read · [blog.brennetot.com](https://blog.brennetot.com/rspec-and-capybara-how-to-use-regex-or-stop-caring-about-whitespaces?utm_source=hashnode&utm_medium=feed)

[Lucian Ghinda](https://hashnode.com/@lucianghinda) · [Nov 6, 2025](https://hashnode.com/posts/rspec-and-let-understanding-the-potential-pitfalls/690c5bf741907b64d53288b9)

### [RSpec and \`let!\`: Understanding the Potential Pitfalls](https://codeandgit.hashnode.dev/rspec-and-let-understanding-the-potential-pitfalls?utm_source=hashnode&utm_medium=feed)

Avoid using \`let!\` in RSpec tests and discover alternative approaches to increase test readability and debugging

4 min read · [codeandgit.hashnode.dev](https://codeandgit.hashnode.dev/rspec-and-let-understanding-the-potential-pitfalls?utm_source=hashnode&utm_medium=feed)

[Yacine Petitprez](https://hashnode.com/@anykeyh) · [Jun 10, 2025](https://hashnode.com/posts/testing-our-application/6847e78f853cd8658c43bf50)

### [Testing Our Application](https://anykeyh.hashnode.dev/testing-our-application?utm_source=hashnode&utm_medium=feed)

A Layered Approach to Quality

10 min read · [anykeyh.hashnode.dev](https://anykeyh.hashnode.dev/testing-our-application?utm_source=hashnode&utm_medium=feed)

[Kyle Smith](https://hashnode.com/@kylecoding) · [Mar 28, 2025](https://hashnode.com/posts/fix-flaky-rspec-tests-fast-with-paralleltests-and-marshgrass/67e69e65ef8f9105c5b23616)

### [Fix flaky RSpec tests fast with parallel\_tests and marsh\_grass](https://kylecoding.com/fix-flaky-rspec-tests-fast-with-paralleltests-and-marshgrass?utm_source=hashnode&utm_medium=feed)

One of the hardest parts of debugging and fixing flaky RSpec tests is reproducing the failure reliably, or even reproducing it at all. Several years ago, an experiment at my company produced the marsh\_grass gem. This gem provides several tools for de...

2 min read · [kylecoding.com](https://kylecoding.com/fix-flaky-rspec-tests-fast-with-paralleltests-and-marshgrass?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/fix-flaky-rspec-tests-fast-with-paralleltests-and-marshgrass/67e69e65ef8f9105c5b23616)

[Sulman Baig](https://hashnode.com/@sulmanweb) · [Dec 30, 2024](https://hashnode.com/posts/rails-testing-for-financial-operations/677228e4b56122abb8278fe3)

### [Rails Testing for Financial Operations](https://sulmanweb.com/rails-testing-for-financial-operations?utm_source=hashnode&utm_medium=feed)

Learn essential testing patterns for building reliable financial applications in Rails, from transaction testing to audit log verification.

4 min read · [sulmanweb.com](https://sulmanweb.com/rails-testing-for-financial-operations?utm_source=hashnode&utm_medium=feed)

[David Montesdeoca](https://hashnode.com/@backpackerhh) · [Dec 23, 2024](https://hashnode.com/posts/the-one-about-using-factories-with-entities-in-sinatra/67693300b71295af54b03608)

### [The one about using factories with entities in Sinatra](https://davidmontesdeoca.dev/the-one-about-using-factories-with-entities-in-sinatra?utm_source=hashnode&utm_medium=feed)

Find out how to use create strategy in factories when your Ruby objects do not implement save! method

5 min read · [davidmontesdeoca.dev](https://davidmontesdeoca.dev/the-one-about-using-factories-with-entities-in-sinatra?utm_source=hashnode&utm_medium=feed)

[Prabin Poudel](https://hashnode.com/@prabin) · [Oct 5, 2024](https://hashnode.com/posts/setup-rspec-tests-in-rails-with-gitlab-ci/670142217acc0bbf1da446b5)

### [Setup RSpec Tests in Rails with Gitlab CI](https://blog.zeroconfigrails.com/setup-rspec-tests-in-rails-with-gitlab-ci?utm_source=hashnode&utm_medium=feed)

At Zero Config Rails, I (Prabin) am constantly working on automating configurations and boring setups like “Setup RSpec Tests in Rails with Gitlab CI”. CI integrations helps in improving the code quality in projects. It can help in automating code re...

12 min read · [blog.zeroconfigrails.com](https://blog.zeroconfigrails.com/setup-rspec-tests-in-rails-with-gitlab-ci?utm_source=hashnode&utm_medium=feed)

[Allan Coder](https://hashnode.com/@allanicode) · [May 3, 2024](https://hashnode.com/posts/getting-started-with-rspec-testing/6635406316b08f5f62306c0c)

### [Getting Started with RSpec testing in Ruby](https://allanicode.hashnode.dev/getting-started-with-rspec-testing?utm_source=hashnode&utm_medium=feed)

Why RSpec

3 min read · [allanicode.hashnode.dev](https://allanicode.hashnode.dev/getting-started-with-rspec-testing?utm_source=hashnode&utm_medium=feed)
