Skip to content

Commit

Permalink
GREEN fix donations controller spec to expect redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyli97 committed Jun 27, 2024
1 parent a25a0d2 commit 2b03b55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/controllers/donations_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
}
donation_params = { source: donation.source, storage_location: new_storage_location, line_items_attributes: line_item_params }
put :update, params: { id: donation.id, donation: donation_params }
expect(response).not_to redirect_to(anything)
expect(response).to redirect_to(edit_donations_path)
expect(original_storage_location.size).to eq 5
expect(new_storage_location.size).to eq 0
expect(donation.reload.line_items.first.quantity).to eq 10
Expand Down

0 comments on commit 2b03b55

Please sign in to comment.