Ruby Testing
RSpec Best Practices: Naming, subject/let, Custom Matchers, and Performance
Good RSpec tests are fast, readable, and fail for the right reasons. Bad ones are slow, coupled to implementation, full of mocks, and when they fail you can't tell what's broken. This post covers the conventions and patterns that separate maintainable RSpec suites from the ones