add inital plan

This commit is contained in:
Rimian Perkins
2017-05-23 13:54:27 +10:00
parent b80440206b
commit 83b4e72ff4
4 changed files with 44 additions and 5 deletions
@@ -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