Skip to content
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

Issue #79: Refactor UserController as demonstrated in PR 13 #80

Merged
merged 3 commits into from
Oct 19, 2017

Conversation

ddelponte
Copy link
Collaborator

  1. pulled the existing code used to build the roleMap out into its own, testable method
  2. implemented a test to verify existing functionality
  3. applied refactoring from PR Unnecessary logic double-checks whether user has roles, creates extra ma... #13 which simplified logic to only do the 'contains' check one time for each role

Fixes issue #79

This is step one of the refactoring which:
1. pulls the existing code used to build the `roleMap` out into its own, testable method
2. implements a test to verify existing functionality
@sdelamo sdelamo merged commit c9f2b4a into master Oct 19, 2017
@sdelamo sdelamo deleted the issue-79 branch October 19, 2017 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants