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

refactor collection members controller specs #5160

Merged
merged 3 commits into from
Oct 4, 2021

Conversation

no-reply
Copy link
Contributor

@no-reply no-reply commented Oct 2, 2021

these specs were really challenging to read, had a lot of duplication and
had many specs with multiple expectations.

this provides clearer naming, consistent indentation style, and deduplicated
parameters. it also removes much unneeded setup code (e.g. providing cryptic ids
and titles for each example object).

interestingly, though the tests here are split out, these seem to run quite a bit faster.
once this is in, i'm hoping to further refactor the whole file to take advantage of valkyrie's
in-memory adapter and further speed up test times.

@samvera/hyrax-code-reviewers

@no-reply no-reply force-pushed the refactor-collection-members-cont-tests branch from c368ed3 to 5d28462 Compare October 2, 2021 17:33
these specs were really challenging to read, had a lot of duplication and
had many specs with multiple expectations.

this provides clearer naming, consistent indentation style, and deduplicated
parameters. it also removes much unneeded setup code (e.g. providing cryptic ids
and titles for each example object).
@no-reply no-reply force-pushed the refactor-collection-members-cont-tests branch from 8f47f40 to 2ad78d5 Compare October 2, 2021 19:21
let the factories take care of any 'other' depositors.
@no-reply no-reply force-pushed the refactor-collection-members-cont-tests branch 2 times, most recently from 6a85920 to 846db37 Compare October 4, 2021 18:26
switch many of the factory generated objects for these tests to valkyrie.

the level of compatibility demonstrated here is pretty interesting!
@no-reply no-reply merged commit 8321566 into main Oct 4, 2021
@no-reply no-reply deleted the refactor-collection-members-cont-tests branch October 4, 2021 19:21
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