Caleb Hearth
Reports from the Field
-
Ignore RuboCop changes in Git Blame
Hide refactoring commits in git-blame by using .git-blame-ignore-revs -
Write cleaner, self-documented tests by defining methods in RSpec
Writing methods in RSpec lets us clean up our tests while improving their documentation value and isolation. -
Understanding the Law of Demeter
Talk to your neighbors, but don’t go into their garages—what is the Law of Demeter, how can we follow it in our code, and when should we make exceptions. -
Avoid test delays and speed up your development cycle by mocking callbacks
It takes a bit more work to mock a method that has a callback block than one without, but it's worth it.
1 of 1