galterlibrary / digital-repository

DigitalHub - Institutional Repository for Galter Health Sciences
https://digitalhub.northwestern.edu/
5 stars 1 forks source link

[#1136] Singularize pages When Just One #1140

Closed Meowcenary closed 1 year ago

Meowcenary commented 1 year ago

Singularize "pages" to "page" for the metadata field size when there is just one page. closes #1136

Meowcenary commented 1 year ago

I've tested this out in the terminal and it's working as expected. I was going to add some specific specs for this, but mocking out the "sizes" method was proving to be a pain because we assign the file as an instance variable. We could refactor the size method to take page_count as an argument and then testing would be easy, but it's such a small change that it just seems unnecessary given the other tasks we have to get done still.