Let's cover scoping models by their popularity (e.g. most popular articles last week). From scratch, we'll build out the ability to 'visit' models within a timeframe and unique restrictions, and then fetch the most popular within any given timeframe. We'll cover everything with a suite of tests using the Pest testing framework.
Hey, I'm the founder of Codecourse!