rspec / rspec-core

RSpec runner and formatters
http://rspec.info
MIT License
1.23k stars 765 forks source link

docs: Add example of proc being acceptable as filter in config.include #3112

Closed the-spectator closed 2 months ago

the-spectator commented 2 months ago

While reading through this issue discussion, I learned that Procs can be used as filters metadata.

In this PR, I am adding an example of using a Proc with the config.include method and the :type filter accepting proc as a value.

JonRowe commented 2 months ago

Thanks this is documented in our feature docs but doesn't hurt to include here

JonRowe commented 2 months ago

Thanks again

the-spectator commented 2 months ago

Thank you for reviewing and merge @JonRowe 🎉