Minitest and RSpec blog

Testing time in Rails with Minitest

Rails comes with time helpers that can make testing time-sensitive code effortless.

Testing Action Cable subscriptions in Rails

Rails provides us great a great live features in terms of Action Cable, but have you already wrote tests for your subscriptions?

Testing exceptions with Minitest

Here's how we can test all kinds of exceptions and throughs in our POROs, models, and services.

How to test with regular expressions using assert_match

Minitest comes with plenty of handy assertions. If the matching is a little fuzzy, assert_match can help.

How to opt out of parallel database hooks

The new public before_fork_hook for Rails tests

What is RubyCDP

Using RSpec bisecting to find the minimal reproducer

Minitest vs RSpec for testing Rails applications


© Test Driving Rails Blog