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

new fixture for issue 63 #65

Merged
merged 5 commits into from
Nov 27, 2023
Merged

new fixture for issue 63 #65

merged 5 commits into from
Nov 27, 2023

Conversation

Beck-Davis
Copy link
Contributor

@Beck-Davis Beck-Davis commented Nov 9, 2023

Closes #63.

Co-authored by Peter Green pmgreen@users.noreply.github.com

Co-authored by Peter Green <pmgreen@users.noreply.github.com>
@mzelesky
Copy link
Member

mzelesky commented Nov 9, 2023

I would like to have the test included in this pull request along with the fixture. So you can make additional commits within the same branch to write the test to accompany the fixture.

<record>
<leader>01104nma a2200289 i 4500</leader>
<controlfield tag="001">99127156537506421</controlfield>
<controlfield tag="008">230519s1996 njua k 000 0 eng d</controlfield>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like to have the 008 have a value that can be fixed. In the fix_comp_008 method, that means that it has to be one of the following positions of the field:

audience (position 22 of u or v becomes j)
government publication indicator (position 28 of 'n' becomes 'o')

Co-authored-by: Tyler Wade <twade968@users.noreply.github.com>
@Beck-Davis
Copy link
Contributor Author

The Fixture is updated and test created

Copy link
Member

@mzelesky mzelesky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor changes needed, but the test is successful!

spec/fixed_fields/comp_format_bad_008_spec.rb Outdated Show resolved Hide resolved
spec/fixed_fields/comp_format_bad_008_spec.rb Outdated Show resolved Hide resolved
mzelesky and others added 3 commits November 22, 2023 10:00
* implement coveralls

Co-authored-by: Christina Chortaria <christinach@users.noreply.github.com>

* updated circleci config to run coveralls for rspec

Co-authored-by: Bess Sadler <bess@users.noreply.github.com>

---------

Co-authored-by: Christina Chortaria <christinach@users.noreply.github.com>
Co-authored-by: Bess Sadler <bess@users.noreply.github.com>
@Beck-Davis Beck-Davis requested a review from mzelesky November 22, 2023 15:07
Copy link
Member

@mzelesky mzelesky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@mzelesky mzelesky merged commit 5435b6c into main Nov 27, 2023
@mzelesky mzelesky deleted the i63_comp_file_008 branch November 27, 2023 14:01
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.

Make test for comp_file format for bad_008?
3 participants