15 Matching Annotations
  1. May 2022
    1. I think RSpec should provide around(:context)/around(:all). Not because of any particular use case, but simply for API consistency. It's much simpler to tell users "there are 3 kinds of hooks (before, after and around) and each can be used with any of 3 scopes (example, context and suite)". Having some kinds of hooks work with only some kinds of scopes makes the API inconsistent and forces us to add special case code to emit warnings and also write extra documentation for this fact.
  2. Jul 2021
  3. Jun 2021
  4. May 2021
  5. Mar 2021
    1. The guard name defaults to default and can be set via name:. This allows having multiple guards.
  6. Feb 2021
  7. Jan 2021
  8. Dec 2020
  9. Sep 2020