test/test_helper.rb in active_merchant-epsilon-0.9.1 vs test/test_helper.rb in active_merchant-epsilon-0.9.2

- old
+ new

@@ -7,11 +7,11 @@ require 'pry' require 'tapp' require 'vcr' require 'webmock/minitest' -require 'mocha/mini_test' +require 'mocha/minitest' Dotenv.load ActiveMerchant::Billing::Base.mode = :test @@ -201,9 +201,31 @@ item_code: 'ITEM001', item_name: 'Golden Product', order_number: "O#{Time.now.to_i}", gmo_id: ENV['GMO_ID'], gmo_card_id: 'invail id', + } + end + + def gmo_after_purchase_detail + now = Time.now + { + user_id: "U#{Time.now.to_i}", + user_name: 'YAMADA Taro', + user_email: 'yamada-taro@example.com', + item_code: 'ITEM001', + item_name: 'Greate Product', + order_number: "O#{now.sec}#{now.usec}", + memo1: 'memo1', + memo2: 'memo2', + consignee_postal: '1500002', + consignee_name: 'イプシロンタロウ', + consignee_address: '東京都渋谷区1−1−1', + consignee_tel: '0312345678', + orderer_postal: '1500002', + orderer_name: 'YAMADA Taro', + orderer_address: '東京都渋谷区1-1-1', + orderer_tel: '0312345678', } end def fixture_xml(filename, parse: true) xml = File.read("test/fixtures/#{filename}")