-
Notifications
You must be signed in to change notification settings - Fork 0
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
add test for invalid_tag #110
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Separate methods should have separate test blocks under the RSpec.describe
. We should avoid nesting tests in unrelated methods (they don't call on each other).
Ok, I wasn't sure whether validate_marc was the method in record_level.rb or whether it was the logical structure for tests. |
I double checked, it looks like we've been creating separate files for each method to be tested, even if the method is smaller, unless they are directly related or one calls the other. So for this one, it can have its own file. |
The |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good
True. We can make a ticket for it. |
Closes #69