Modules called, they want their integrity back
TL; DR
Rather than including modules and hooking into .included, write a method that adds the behaviour (even if the method just includes and extends)....more.
TL; DR
Rather than including modules and hooking into .included, write a method that adds the behaviour (even if the method just includes and extends)....more.
I've spent the last several months writing my own mock objects, but for the code I'm currently working on, we were mostly using RSpec's built...more.
So if you're like me, you're 5'10" and sport a ruggedly awesome beard. And if you're really like me, you swallowed the T/BDD pill years...more.