Loading…
0+ curated questions with the same answer shape every time: quick recap, deep dive, pitfalls, and follow-ups. Coverage includes .
RSpec interview questions for experienced Rails engineers go beyond describe and it blocks. This module covers the execution model (let is lazy — evaluated on first call, let! is eager — evaluated before each example), subject and described_class, shared examples (shared_examples_for + it_behaves_like) for DRY contract testing across multiple implementations, shared contexts (shared_context + include_context) for setup reuse, custom matchers with RSpec::Matchers.define for expressive test assertions, aggregate_failures for multiple expect without early exit, around hooks, metadata-based tagging and filtering, spec/rails_helper.rb vs spec_helper.rb (Rails vs pure Ruby setup), ActiveJob::TestHelper for job assertions, ActionMailer::TestHelper for mailer assertions, and testing concerns with a dummy host class.
Full catalog
Topics are ordered for learning. Within each topic, rows are numbered 1–0 globally so you always know where you are. Collapse topics if you want a lighter view — use Expand all when you need the full list again.
Numbers 1–0 follow the order we recommend — click any row to open the full answer, or use the sticky Next link at the bottom of each page to go Q1 → Q0.