In this article, I break down the difference between system specs and feature specs in RSpec and Rails, and walk you through refactoring your feature specs to system specs.
Refactoring (2)
From API calls to ActionMailer — Refactoring a Rails App to Use ActionMailer for transactional email
How I switched from using direct SendGrid API calls to implementing ActionMailer for cleaner, more manageable code. Our final implementation will take us from 36 lines of code, down to 1 ...