IULRDC-93 DataCORE NewContentService unit tests#213
Open
Conversation
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.
Extracted methods:
New methods:
Removed redundant methods:
Added new parameter to method:
Removed redundant parameter from method:
In addition
line 681 - changed else to elsif on when checksum variable is blank because lack of algorithm field on checksum variable causes an error
line 788, 872, 2060 - corrected spelling on build_rights_liscense to build_rights_license
line 794 - explicitly checking for array instead of whether a value responds to '[]' because a string responds to '[]' - assuming we want the first string of an array of strings, not first letter of a string
line 943, 1098, 1300, 1395, 1815 - changed 'nil' to nil - assuming that 'nil' was incorrect
line 1134, 1868 - changed orignal_name to original_name (corrected spelling)
line 1334 - removed work.id from error message - no work.id in function
line 1722 - changed variable name from attr_name to hard-coded "attr_doi" - doi_mint function has no
attr_name variable
line 1397 - removed call to blank function
line 1524, 1525 - removed if @options.key? because the key? function is invalid without an argument
line 1580 - removed else statement that is never needed