add inital plan
This commit is contained in:
@@ -24,8 +24,8 @@ module DiscourseDonations
|
||||
end
|
||||
|
||||
it 'whitelists the params' do
|
||||
params = { email: '[email protected]', password: 'secret', username: 'mr-pink', name: 'kirsten', amount: 100, stripeToken: 'rrurrrurrrrr' }
|
||||
should permit(:name, :username, :email, :password).for(:create, params: params)
|
||||
params = { email: '[email protected]', password: 'secret', username: 'mr-pink', name: 'kirsten', amount: 100, plan: 'some-plan-id', stripeToken: 'rrurrrurrrrr' }
|
||||
should permit(:name, :username, :email, :password, :plan).for(:create, params: params)
|
||||
end
|
||||
|
||||
it 'responds ok for anonymous users' do
|
||||
|
||||
Reference in New Issue
Block a user