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

283 - Refactor publications_controller#show #284

Closed

Conversation

Janell-Huyck
Copy link
Contributor

Fixes #283

This PR just aims to improve the readability of the PublicationsController's show method.

Note - the usage of helpers.find_submitter() required a submitter id, which our "show" tests had not been providing. So the tests have been updated to include a submitter_id in their valid params. In the app, a submitter_id is provided in the forms via a hidden field tag like this: <%= hidden_field_tag "book[submitter_id]", session[:submitter_id] || @book.submitter_id %>

@Janell-Huyck
Copy link
Contributor Author

PR #338 updated the #show function to make it more robust for testing purposes.

@Janell-Huyck Janell-Huyck deleted the refactor-283-publications-controller-show-refactor branch February 21, 2024 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor publications_controller#show for readability
1 participant