Articles by Tag #rspec

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

How to save time when run RSpec tests

two tips that help a lot to save time when running test suites on Rails with RSpec. 1....

Learn More 4 1Jul 6 '24

File uploads in request specs

A short how-to for testing file uploads

Learn More 2 0Aug 21 '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

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

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

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

Bug in `use_transactional_fixtures`

Working around a nasty surprise with transactional specs

Learn More 0 0Sep 26 '24

Save CI time by skipping navbar rendering

Today I decided to experiment with skipping navbar rendering in our feature spec suite to reduce CI...

Learn More 0 0Aug 22 '24

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

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