mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-04-30 08:55:17 +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. |
||
|---|---|---|
| .. | ||
| fast_image_spec.rb | ||
| rspec_mocks_from_described_class_spec.rb | ||
| safe_buffer_spec.rb | ||
| schema_migration_details_spec.rb | ||
| translate_accelerator_spec.rb | ||
| web_push_spec.rb | ||