-
Notifications
You must be signed in to change notification settings - Fork 14
Fyst 1720 md disqualify dependent taxpayers from claiming poverty level credit #5483
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
Fyst 1720 md disqualify dependent taxpayers from claiming poverty level credit #5483
Conversation
… and not a federal filing status, and fix calculator tests and implementation accordingly
Heroku app: https://gyr-review-app-5483-81eb6cd9fb32.herokuapp.com/ |
before do | ||
allow_any_instance_of(described_class).to receive(:deduction_method_is_standard?).and_return(false) | ||
end | ||
let(:line_1b) { 5_000 } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These needed to change because the previous values made the intake ineligible for the credit - the test still passed even when I changed the filing status to not-dependent
let(:filing_status) { "dependent" } | ||
let(:line_1b) { 20_000 } | ||
let(:line_7) { 15_000 } | ||
let(:line_1b) { 5_000 } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
…calculator filing_status_dependent? to indicate that it is MD specific, and fix test for 502CR calculator to accurately represent a persona whose MD filing status will be dependent
I'm guessing you're referring to the bunch of tests that do something like this:
should we fix this up as a fast follow up to this story? Are we not testing these scenarios properly currently because
|
@@ -1018,30 +1024,31 @@ | |||
end | |||
|
|||
describe "#calculate_line_23" do | |||
let (:deduction_method_standard) { true} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
space after true
else | ||
let(:filing_status) { filing_status } | ||
let(:claimed_as_dependent) { false } | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'm guessing we'll do something similar for the MD502 calculator tests when we have time to fix them up?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that's my thinking
Yes, the tests should be fixed but IMO that should go hand in hand with changing how we check filing status (e.g. the federal_filing_status vs state_filing_status suggestion in the pr description). And that work should be very hand in hand with program & PM to make sure it is acceptance-tested really precisely. And as for the if block you pasted - we will go into that one because that ( |
Link to pivotal/JIRA issue
Is PM acceptance required? (delete one)
Reminder: merge main into this branch and get green tests before merging to main
What was done?
Md502Calculator#filing_status_dependent?
would never return true for a real user, since it checked the intake's filing status (which is their federal filing status) for a value it could never have.direct_file_data.claimed_as_dependent?
method, which is the same way we decide to set their MD filing status to "dependent".federal_filing_status
andstate_filing_status
method on intakes, the latter of which in MD would returndependent
if the filer is claimed as a dependent (as we do in Md502.rb on lines 63-74), and switch our calculators over to use#state_filing_status
everywhere (or almost everywhere, if there are calculations that explicitly use federal filing status):dependent
as a filing status to the StateFileMdIntake constructor, which I believe will never happen in real usage since that is not a valid federal filing status.How to test?