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

Restructure users controller test #2494

Merged
merged 3 commits into from
Nov 6, 2023
Merged

Conversation

floehopper
Copy link
Contributor

The UsersControllerTest is over 800 lines long and I was struggling to find my way around it. I think that using top-level contexts for the actions and 2nd-level contexts for signing in users with different roles is a bit less surprising.

My motivation for making these changes is that I'm currently working on the user edit page which means I'll be making a lot of changes in this area. Making these changes first will make that easier. And getting the commits merged soon will reduce the chance of any merge conflicts.

The commits are best viewed with the --ignore-all-space git diff option, because lots of the indentation has changed.

This test is over 800 lines long and I was struggling to find my way
around it. I think that using top-level contexts for the actions is a
bit less surprising.

The diff is best viewed using the `--ignore-all-space` git diff option,
because lots of the indentation has changed.
This test is over 800 lines long and I was struggling to find my way
around it. I think that consistently using 2nd-level contexts for
signing in different current user roles is less suprising.

The diff is best viewed using the `--ignore-all-space` git diff option,
because lots of the indentation has changed.
@floehopper floehopper merged commit e0fd97c into main Nov 6, 2023
11 checks passed
@floehopper floehopper deleted the restructure-users-controller-test branch November 6, 2023 16:01
floehopper added a commit that referenced this pull request Nov 6, 2023
floehopper added a commit that referenced this pull request Nov 8, 2023
This was missed in #2494 & #2495. The commits are best viewed with the
`--ignore-all-space` git diff option.
floehopper added a commit that referenced this pull request Nov 8, 2023
This was missed in #2494 & #2495. The commits are best viewed with the
`--ignore-all-space` git diff option.
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.

2 participants