Skip to content

Commit 00c2a85

Browse files
committed
Add page3 unit test
1 parent 17b80b2 commit 00c2a85

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

spec/controllers/hub/clients_controller_spec.rb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2055,7 +2055,9 @@
20552055
commit: I18n.t('general.save'),
20562056
hub_update13614c_form_page3: {
20572057
bought_energy_efficient_items: "unfilled",
2058-
tax_credit_disallowed_year: "2001"
2058+
tax_credit_disallowed_year: "2001",
2059+
new_vehicle_purchased: "yes",
2060+
vin_number: "123456",
20592061
}
20602062
}
20612063
}
@@ -2082,7 +2084,10 @@
20822084
system_note = SystemNote::ClientChange.last
20832085
expect(system_note.client).to eq(client)
20842086
expect(system_note.user).to eq(user)
2085-
expect(system_note.data['changes']).to match({"bought_energy_efficient_items"=>[nil, "unfilled"], "tax_credit_disallowed_year"=>[nil, 2001]})
2087+
expect(system_note.data['changes']).to match({"bought_energy_efficient_items" => [nil, "unfilled"],
2088+
"tax_credit_disallowed_year" => [nil, 2001],
2089+
"new_vehicle_purchased" => ["unfilled", "yes"],
2090+
"vin_number" => [nil, "123456"]})
20862091
expect(client.last_13614c_update_at).to be_within(1.second).of(DateTime.now)
20872092
end
20882093

0 commit comments

Comments
 (0)