-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stripe subs #4
base: master
Are you sure you want to change the base?
Stripe subs #4
Conversation
Also of potential use: https://stripe.com/docs/guides/subscriptions |
Membership plans is going to be a has many. That's why it's an empty check as opposed to a nil. Thanks mat! Cheers, Jim
|
In line 35 of group_spec, have to change That, or specify rspec version to something like 2.99 in Gemfile. |
For the final instructor-led class, we introduce a pull request with some failing specs.
To fix the group slug spec
https://github.com/norman/friendly_id
To fix the group plan specs
The specs, as written, require a migration on group, and a new group factory. Analyze the code, and figure out what the column should be named to write the migration. Then use https://github.com/thoughtbot/factory_girl/blob/master/GETTING_STARTED.md to figure out how to create the new factory.
The migration you write will allow you to conditionally create membership plans. Install the payola gem and review https://github.com/peterkeen/payola/wiki/Subscriptions for integration instructions.