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.
This PR is reabased against current master, so it will fix any issues introduced by previous PRs on this bounty
Fix for Error when attempting to join a team instead of create a team #391
The fix was a one liner - incorrect format of params, which caused
params.permit
to raise a 400 error.I covered the related logic with specs and features and also did a little refactoring to make it easier to test and to understand the logic.
Changes:
:show_similar
and:join_team
to clarify user intentions#with_similar_names
to Team model methodUsernamesController
when validation is run against an empty user namepoltergeist
headless browser for integration testing with feature specs (will requirephantomjs
executable to be added to the vagrant box)