File tree Expand file tree Collapse file tree 2 files changed +15
-12
lines changed
submission_builder/ty2024/states/nj/documents Expand file tree Collapse file tree 2 files changed +15
-12
lines changed Original file line number Diff line number Diff line change 16151615
16161616 describe "line 55 - total income tax withheld" do
16171617 context 'when TaxWithheld has a value' do
1618- let ( :intake ) { create ( :state_file_nj_intake , :df_data_many_w2s ) }
1618+ before do
1619+ allow_any_instance_of ( Efile ::Nj ::Nj1040Calculator ) . to receive ( :calculate_line_55 ) . and_return 12_345_678
1620+ end
16191621
16201622 it "fills line 55 with sum of income tax withheld" do
16211623 # millions
1622- expect ( pdf_fields [ "undefined_1471qerw" ] ) . to eq ""
1623- expect ( pdf_fields [ "undefined_114" ] ) . to eq ""
1624+ expect ( pdf_fields [ "undefined_1471qerw" ] ) . to eq "1 "
1625+ expect ( pdf_fields [ "undefined_114" ] ) . to eq "2 "
16241626 # thousands
1625- expect ( pdf_fields [ "undefined_143" ] ) . to eq ""
1626- expect ( pdf_fields [ "undefined_144" ] ) . to eq ""
1627- expect ( pdf_fields [ "undefined_145" ] ) . to eq "2 "
1627+ expect ( pdf_fields [ "undefined_143" ] ) . to eq "3 "
1628+ expect ( pdf_fields [ "undefined_144" ] ) . to eq "4 "
1629+ expect ( pdf_fields [ "undefined_145" ] ) . to eq "5 "
16281630 # hundreds
1629- expect ( pdf_fields [ "Text153" ] ) . to eq "0 "
1630- expect ( pdf_fields [ "Text154" ] ) . to eq "0 "
1631- expect ( pdf_fields [ "Text155" ] ) . to eq "0 "
1631+ expect ( pdf_fields [ "Text153" ] ) . to eq "6 "
1632+ expect ( pdf_fields [ "Text154" ] ) . to eq "7 "
1633+ expect ( pdf_fields [ "Text155" ] ) . to eq "8 "
16321634 # decimals
16331635 expect ( pdf_fields [ "Text156" ] ) . to eq "0"
16341636 expect ( pdf_fields [ "Text157" ] ) . to eq "0"
Original file line number Diff line number Diff line change 761761
762762 describe "total income tax withheld - line 55" do
763763 context 'when has w2s' do
764- let ( :intake ) { create ( :state_file_nj_intake , :df_data_many_w2s ) }
764+ before do
765+ allow_any_instance_of ( Efile ::Nj ::Nj1040Calculator ) . to receive ( :calculate_line_55 ) . and_return 12_345
766+ end
765767 it 'sets TaxWithheld to sum of state_income_tax_amount' do
766- expected = 2000 # 500 + 500 + 500 + 500
767- expect ( xml . at ( "TaxWithheld" ) . text ) . to eq ( expected . to_s )
768+ expect ( xml . at ( "TaxWithheld" ) . text ) . to eq ( 12_345 . to_s )
768769 end
769770 end
770771
You can’t perform that action at this time.
0 commit comments