Minor ruby rspec helper function