transaction refractor rspec mock