2019-07-30 21:29:24 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-03-25 16:15:39 +00:00
|
|
|
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
2018-03-25 17:30:42 +00:00
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
describe StripeUtils, pending: true do
|
2019-07-30 21:29:24 +00:00
|
|
|
# describe '.get_verification_status' do
|
|
|
|
# it 'returns "verified" if the account has transfers enabled' do
|
|
|
|
# acct = double("Stripe::Account", {transfers_enabled: true})
|
|
|
|
# status = VCR.use_cassette('StripeUtils/verification_status_verified'){StripeUtils.get_verification_status(acct)}
|
|
|
|
# expect(status).to eq("verified")
|
|
|
|
# end
|
2018-03-25 17:30:42 +00:00
|
|
|
#
|
2019-07-30 21:29:24 +00:00
|
|
|
# it 'returns the status if transfers arent enabled' do
|
|
|
|
# acct = double("Stripe::Account", {transfers_enabled: nil})
|
|
|
|
# allow(acct).to receive_message_chain(:legal_entity, :verification, :status).and_return("the_status")
|
|
|
|
# expect(StripeUtils.get_verification_status(acct)).to eq("the_status")
|
|
|
|
# end
|
|
|
|
# end
|
2018-03-25 17:30:42 +00:00
|
|
|
end
|