houdini/spec/lib/construct/construct_nonprofit_spec.rb
2020-06-15 10:26:57 -05:00

23 lines
827 B
Ruby

# frozen_string_literal: true
# License: AGPL-3.0-or-later WITH WTO-AP-3.0-or-later
# Full license explanation at https://github.com/houdiniproject/houdini/blob/master/LICENSE
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