mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-12 22:22:46 +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. |
||
|---|---|---|
| .. | ||
| admin/assets/javascripts | ||
| app | ||
| assets | ||
| config | ||
| db | ||
| lib | ||
| spec | ||
| test/javascripts/integration/components | ||
| plugin.rb | ||