Articles by Tag #rspec

Browse our collection of articles on various topics related to IT technologies. Dive in and explore something new!

Testing External Services with RSpec, VCR, and WebMock in Ruby on Rails

A practical guide to recording and replaying HTTP interactions in Rails tests using VCR and WebMock. Features one-line setup, configuration examples, and best practices for testing external APIs reliably.

Learn More 2 1Nov 2 '24

See untested code in GitLab MRs

Today I got a nifty little GitLab feature configured for our Rails project - displaying which lines...

Learn More 2 0Aug 26 '24

Fixing the “Could not find a valid mapping” Error in Rails 8 Tests

While writing RSpec tests for a model that references User, I encountered this...

Learn More 1 0Jun 24

Mock User Agent in View Component Specs

Recently, I implemented a couple of ViewComponents to display links to our app in the app stores....

Learn More 0 0Jan 17

The Testing Psyche

I'm only seeing dots when my Ruby RSpec test suite is running. But a lot is going on in my...

Learn More 0 0Apr 29

Bug in `use_transactional_fixtures`

Working around a nasty surprise with transactional specs

Learn More 0 0Sep 26 '24

Joy of Test Driven Development(TDD) using Rspec in Ruby

Joy of Test Driven Development(TDD) using Rspec in Ruby Prerequisites I am...

Learn More 0 0May 29