I think you should use stubs here to stub out transactions, since that is what is being tested with balance. Right now you are  depending on the deposit! method to work in order to test the balance method, which is not super great. Something like account.stub(:transactions => [array of numbers]). This way you are only testing the balance method