-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert StatutorySickPayCalculator into ActiveModel model
This will allow us to instantiate the calculator at the beginning of the flow and set its attributes as we go along c.f. `PartYearProfitTaxCreditsCalculator`. This commit extracts logic from the constructor into separate methods which are only called on demand. This should make it easier to unit test these methods, because we'll only need to supply the attributes that are actually needed for the method under test; previously we had to supply many/all of the attributes to avoid an error in the constructor.
- Loading branch information
1 parent
c98c60d
commit f78671a
Showing
1 changed file
with
26 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters