Skip to content

Commit c14935a

Browse files
Adding some integration tests for the fte check
1 parent c72d4b5 commit c14935a

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

spec/lib/config_spec.rb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,20 @@
5454
end
5555
end
5656
end
57+
58+
describe Config do
59+
describe '.skip_fte_check? (with real config values)' do
60+
it 'returns true for a job code in fte_check_exclusions' do
61+
expect(Config.skip_fte_check?('CWR016')).to be(true)
62+
end
63+
64+
it 'returns true for a job code in emeritus_job_code' do
65+
expect(Config.skip_fte_check?('009902')).to be(true)
66+
end
67+
68+
it 'returns false for a job code not in either list' do
69+
expect(Config.skip_fte_check?('TOTALLY_FAKE_CODE')).to be(false)
70+
end
71+
end
72+
end
5773
# rubocop:enable Metrics/BlockLength

0 commit comments

Comments
 (0)