17 Matching Annotations
  1. Aug 2023
    1. The method name is generated by replacing spaces with underscores. The result does not need to be a valid Ruby identifier though — the name may contain punctuation characters, etc. That's because in Ruby technically any string may be a method name. This may require use of define_method and send calls to function properly, but formally there's little restriction on the name.
  2. Mar 2023
  3. 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.
  4. Jul 2021
  5. Jun 2021
  6. May 2021
  7. Mar 2021
    1. The guard name defaults to default and can be set via name:. This allows having multiple guards.
  8. Feb 2021
  9. Jan 2021
  10. Dec 2020
  11. Sep 2020