Skip to content

Add exceptions for FTE check#10

Merged
steve-sullivan merged 3 commits intomainfrom
AP-559-FTE-exceptions
Mar 31, 2026
Merged

Add exceptions for FTE check#10
steve-sullivan merged 3 commits intomainfrom
AP-559-FTE-exceptions

Conversation

@steve-sullivan
Copy link
Copy Markdown
Contributor

AP-559 - Update the 0FTE check to allow for some exceptions
Following job codes should be included even if the job has zero percent of full time employment:

  • CWR022
    
  • Visiting scholar job codes (CWR015)
    
  • Visiting student job codes (CWR003, CWR016)
    
  • Faculty emeritus job codes
    

Comment thread spec/lib/ucpath_spec.rb

before do
allow(Date).to receive(:today).and_return(today)
allow(Config).to receive(:skip_fte_check?).and_return(false)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I see you configured this but do you have a test to call the method with a true return and one for a false return?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good call. The branch is covered..., but I don't have an explicit test for skip_fte_check (there are just tests that touch both scenarios), but probably good to have an explicit test for that purpose...I'll add that in!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Added test for FTE function

@steve-sullivan steve-sullivan merged commit 7480126 into main Mar 31, 2026
5 checks passed
@steve-sullivan steve-sullivan deleted the AP-559-FTE-exceptions branch March 31, 2026 16:41
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.

2 participants