Photo © Julian Bleecker. Licensed under Creative Commons. https://flic.kr/p/69d945

Keep Your Certificates Current Using Your Test Suite

By Daniel Morrison

How can our test suite tell us when a certificate expires? We’ll show you.

Welcome Dana Jones

We’re excited to welcome Dana Jones to the Collective Idea team!

Stubbing your Android Intents

Know your intent was sent without the Activity opening
By Victoria Gonda

When we stub an intent, we are able to intercept it so the intent is never sent to the system, and specify how it should respond. This can be helpful in your Android tests when you need to know if an intent was sent, but you don’t actually need the Activity to start. This can be accomplished by using espresso-intents.

Bi-Directional and Self-Referential Associations in Rails

By Josh Kovach

I’ve been working on an application that works to match users together based on a complex set of criteria (read: big slow database query and in-memory processing). The core usage of the application revolves around these user matches, so I want to make sure that either the algorithm will run very fast or can be cached so that it’s not run every time a user visits their matches page.

The most important requirement for our matches is reciprocation. To solve this problem and meet all of the requirements, we can create a bi-directional, self-referential, self-syncing, many-to-many association between users using a has_many :through association with a join model to keep track of a user’s matches.

Rewriting History With Git Rebase, Reset, and Amend

By Eric Milford

Editing an existing commit in history with an interactive rebase, reset, and amend.