← Graph

stub_any_instance

tool 1 connections

Ruby gem used in the minitest variant of the wroclove.rb 2026 lightning talk on testing Rails.env conditionals. Lets the speaker define helpers like stub_environment(:development) that stub Rails.env.development? to true while Rails.env.test? and Rails.env.production? return false, so code branches gated on Rails.env can actually be exercised inside the test environment.

category
library
language
Ruby
about
stub_any_instance tool
Used in the minitest variant of the Rails.env-stubbing helper

Provenance

Created in
wroclove.rb 2026 Lightning Talks 2026-04-22 08:41
Read by
1 extraction