Conversation
Member
Author
|
Also of potential use: https://stripe.com/docs/guides/subscriptions |
Member
Author
|
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.