Verifying doubles falsely verify under certain conditions.
Created by: JonRowe
Under certain conditions verifying doubles will attempt to verify against something that isn't an actual implementation of the double. This causes false failing tests when I'm expecting them to work in isolation.
The thing I've found to trigger this reliably is nesting constants, e.g.
instance_double "Mechanize", get: page
stub_const "Mechanize::UnsupportedSchemeError", error_double
This causes the instance_double
to verify against the created const for Mechanize
, which of course contains no implementation.