Why avoid too many abstractions in tests?
Too many abstractions for our test code is like highlighting every single word of the book you're reading. You'd only want to highlight the most important parts right?
Topic
Ruby language notes, habits, and examples.
Too many abstractions for our test code is like highlighting every single word of the book you're reading. You'd only want to highlight the most important parts right?
NoMethodError: undefined method 'excerpt' for nil:NilClass
Comments to my past self about a basic principle of OOP.
When developing gems or external libraries we frequently write the semantic versioning as a string.
[...] we tend to write a lovely: raise 'some error explanation'
Introducing yaaf, a gem to ease the usage of the form object pattern in rails apps.