mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-17 15:23:00 +08:00
This change adds a new `from_described_class` helper to `RSpec::Mocks`, allowing stubs to only be used when called from the described class in a given spec. The practical application of this helper is to handle flaky specs, where other code can call the mocks before the test target can. |
||
|---|---|---|
| .. | ||
| automation_spec.rb | ||
| field_spec.rb | ||
| stat_spec.rb | ||
| user_global_notice_spec.rb | ||