22 lines
770 B
Ruby
22 lines
770 B
Ruby
# frozen_string_literal: true
|
|
|
|
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
|
require 'rails_helper'
|
|
|
|
describe ConstructNonprofit, pending: true do
|
|
# describe '.construct' do
|
|
#
|
|
# let(:params) {{name: SecureRandom.uuid, city: 'Oakland', state_code: 'CA', email: 'user@example.com'}}
|
|
# let(:user) do
|
|
# u = double("User", {current_sign_in_ip: '8.8.8.8'})
|
|
# u
|
|
# end
|
|
# let(:h) do
|
|
# VCR.use_cassette 'ConstructNonprofit/h' do
|
|
# ConstructNonprofit.construct(user, params)
|
|
# end
|
|
# end
|
|
# it('sets status to unverified'){ expect(h[:verification_status]).to eq('unverified') }
|
|
# it('sets a stripe account id'){ expect(h[:stripe_account_id][0..3]).to eq('acct') }
|
|
# end
|
|
end
|