I'd push this method back down into ActiveRecord object, test it with integration test.

Then the test for `last_build_duration` is trivial. I think that also simplifies a couple of the other places where you were using `receive_message_chain`.