rspec/rspec-core — Issue #573: Consider removing `before(:all)`
Author: dchelimsky
Created: 2012-02-14 14:13:10+00:00
State: open

The initial intent of `before(:all)` was to work like a class-level setup method in xUnit tools to set something up in the environment that you only want to set up once. At some point, we made it a cross-example state-sharing mechanism, and since that point it's been nothing but trouble.

The superficial motivation for using this as a state-sharing mechanism is speed, but this really stems from the one-expectation-per-example guideline, which, in turn, stems from the fact that expectations raise errors rather than recording and reporting later.

We should consider removing `before(:all)` from rspec-core, and supporting a non-fast-fail mode in rspec-expectations.