Using Procs as Filters for RSpec Metadata
Ever wondered why we have to add RSpec Helpers multiple times for each spec type? There must be a more idiomatic way to do this.
Byte size blogs to share my experiences.
Ever wondered why we have to add RSpec Helpers multiple times for each spec type? There must be a more idiomatic way to do this.
One of the things that sets Ruby apart from other programming languages is its impressive set of built-in features. One of my favourite method is Enumerable#detect. It returns the first element for which the block yields a truthy value and stops searching upon the first hit.