Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
baisa committed Feb 13, 2025
1 parent 1ada42d commit bdc1f77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/smart_answer/calculators/self_assessment_penalties.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ class SelfAssessmentPenalties < OpenStruct
{ start_date: "2023-08-22", end_date: "2024-08-19", value: 0.0775 },
{ start_date: "2024-08-20", end_date: "2024-11-25", value: 0.075 },
{ start_date: "2024-11-26", end_date: "2025-02-24", value: 0.0725 },
{ start_date: "2025-02-25", end_date: "2100-04-04", value: 0.070 }, ].freeze
{ start_date: "2025-02-25", end_date: "2100-04-04", value: 0.070 },
].freeze

def tax_year_range
case tax_year
Expand Down
2 changes: 1 addition & 1 deletion test/unit/calculators/self_assessment_penalties_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ def setup
assert_equal 6132, @calculator.total_owed
@calculator.payment_date = Date.parse("2025-08-03")
assert_equal 750, @calculator.late_payment_penalty
assert_equal 6311, @calculator.total_owed
assert_equal 6306, @calculator.total_owed
end

context "HMRC Covid-19 Extension to 1 April for 2019-20" do
Expand Down

0 comments on commit bdc1f77

Please sign in to comment.