Sha256: bf727635788b10d6c1d95726097390261658f6c35b39b4770fc449c589f46ff3

Contents?: true

Size: 400 Bytes

Versions: 3

Compression:

Stored size: 400 Bytes

Contents

module Workarea
  module Factories
    module AuthorizeCimFactory
      Factories.add(self)

      def age_capture_or_purchase_transactions_for(payment)
        # force transactions to be older than a day to pass validation
        payment.transactions.each do |transaction|
          transaction.update_attributes!(created_at: transaction.created_at - 2.day)
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
workarea-authorize_cim-2.1.3 test/factories/workarea/factories/authorize_cim_factory.rb
workarea-authorize_cim-2.1.2 test/factories/workarea/factories/authorize_cim_factory.rb
workarea-authorize_cim-2.1.1 test/factories/workarea/factories/authorize_cim_factory.rb