From 3c49f4741aef2acb2b2fb6b7f37480b25930d266 Mon Sep 17 00:00:00 2001 From: Jan Cernik Date: Thu, 12 Sep 2024 01:57:09 -0300 Subject: [PATCH] DEV: Fix test for new user card --- spec/requests/votes_controller_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/requests/votes_controller_spec.rb b/spec/requests/votes_controller_spec.rb index e2c8fb0..558145a 100644 --- a/spec/requests/votes_controller_spec.rb +++ b/spec/requests/votes_controller_spec.rb @@ -36,7 +36,7 @@ expect(response.status).to eq(200) json = JSON.parse(response.body) expect(json.length).to eq(1) - expect(json.first.keys.sort).to eq(%w[avatar_template id name username]) + expect(json.first.keys.sort).to eq(%w[avatar_dominant_color avatar_template id name username]) expect(json.first["id"]).to eq(user.id) post "/voting/unvote.json", params: { topic_id: topic.id }