GoRails Screencasts
Concept Application: Assert Difference Deep Dive

Concept Application: Assert Difference Deep Dive

GoRails Screencasts

23:52

About this episode

In this video, we will explore how the concepts we looked at in "Flattening Scopes in Ruby" are used in Rails by taking a look at the assert_difference method. We will walk through how the method works while taking note of where the concepts are applied.

More from GoRails Screencasts

Configuring servers can be tricky, but it's much easier using drop-in configs so you're not editing files that could change across versions or environments.

7m

The Whenever gem is fantastic for defining cron jobs. With a little customization, we can have it monitor cron jobs and report logs, and status to services like AppSignal.

12m

Learn how to use Rails' with_options to DRY up duplicated options across method calls and associations, including how to nest them for shared defaults.

8m