houdini/spec/lib/construct/construct_nonprofit_spec.rb

24 lines
827 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2020-06-12 20:03:43 +00:00
# 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