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

Implement pending past court date model specs #2132

Conversation

rhian-cs
Copy link
Contributor

@rhian-cs rhian-cs commented Jun 7, 2021

What github issue is this PR for, if any?

Continuation of #2095

What changed, and why?

In #2095, @compwron asked me to implement some pending tests for the PastCourtDate model, so this is the main reason for this pull request.

What I did was:

  • Rename spec/models/past_court_date.rb to spec/models/past_court_date_spec.rb
  • Implement tests for the #associated_reports method and the #latest_associated_report method in the PastCourtDate model spec
  • Replace the slash-separated template path in PastCourtDate for a Rails.root.join notation

How will this affect user permissions?

No permissions have been changed.

How is this tested? (please write tests!) 💖💪

Improved PastCourtDate model specs.

Screenshots please :)

Screenshots are not applicable, since this basically only changed the specs.

@github-actions github-actions bot added ruby Pull requests that update Ruby code Tests! 🎉💖👏 labels Jun 7, 2021
Copy link
Collaborator

@compwron compwron left a comment

Choose a reason for hiding this comment

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

Wonderful!! :)

@compwron compwron merged commit 6227bcc into rubyforgood:main Jun 8, 2021
@rhian-cs rhian-cs deleted the implement-pending-past-court-date-model-specs branch June 8, 2021 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ruby Pull requests that update Ruby code Tests! 🎉💖👏
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants