diff --git a/spec/requests/providers/means/capital_disregards/add_details_controller_spec.rb b/spec/requests/providers/means/capital_disregards/add_details_controller_spec.rb index 17bca7e533..795201d536 100644 --- a/spec/requests/providers/means/capital_disregards/add_details_controller_spec.rb +++ b/spec/requests/providers/means/capital_disregards/add_details_controller_spec.rb @@ -36,9 +36,9 @@ capital_disregard: { amount:, account_name:, - date_received_3i:, - date_received_2i:, - date_received_1i:, + "date_received(3i)": date_received_3i, + "date_received(2i)": date_received_2i, + "date_received(1i)": date_received_1i, }, continue_button: "Save and continue", } @@ -68,10 +68,9 @@ context "with valid params" do let(:amount) { 1234 } let(:account_name) { "Account name" } - let(:date_received) { Date.new(2024, 2, 1) } - let(:date_received_3i) { date_received.day } - let(:date_received_2i) { date_received.month } - let(:date_received_1i) { date_received.year } + let(:date_received_3i) { "1" } + let(:date_received_2i) { "2" } + let(:date_received_1i) { "2024" } it "redirects to the next page" do expect(response).to have_http_status(:redirect)