Skip to content

Index

Colleen Schnettler on Twitter

Colleen Schnettler on Twitter

A tricky thing to remember in Active Record is how to query multiple associations vs. nested associations. Multiple associations take a list of symbols, nested associations take a hash with a symbol. pic.twitter.com/XhGiJdcH7h— Colleen Schnettler (@leenyburger) March 3, 2022

March 7, 2022 at 01:54PM

Testing network services in Ruby is easier than you think

Testing network services in Ruby is easier than you think

You’ve started a new project and it’s time for your code to depend on a third- party service. It could be something like ElasticSearch, Resque, a billing provider, or just an arbitrary HTTP API. You’re a good developer, so you want this code to be well tested. But how do you test code that fires off requests to a service that’s totally out of your control?

March 4, 2022 at 02:53PM