testing gem for api capture in rails