Sometimes you want to fetch associations for an ActiveRecord that you already loaded, e.g. when it has deeply nested associations...
github.com
There are three ways to define your own RSpec matchers, with increasing complexibility and options: 1) Use RSpec::Matchers.define
The Git stash does not work like a one-slot clipboard and you might shoot yourself in the foot if...
github.com
An alternative to this technique is using VCR. VCR allows you to record and replay real HTTP responses, saving you...