From 6ed0cd26f110d45d433a9c8fb5ba0b0dc9a4e6d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacek=20=C5=81yp?= Date: Fri, 6 Sep 2024 18:50:03 +0200 Subject: [PATCH] Fix tests --- spec/asana_extract_task_assignee_action_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/asana_extract_task_assignee_action_spec.rb b/spec/asana_extract_task_assignee_action_spec.rb index fd5e30d..0a5cff8 100644 --- a/spec/asana_extract_task_assignee_action_spec.rb +++ b/spec/asana_extract_task_assignee_action_spec.rb @@ -11,7 +11,7 @@ it "returns the assignee ID and sets GHA output when Asana task is assigned" do allow(Fastlane::Helper::GitHubActionsHelper).to receive(:set_output) expect(@asana_client_tasks).to receive(:get_task).and_return( - double(assignee: double(gid: "67890")) + double(assignee: { "gid" => "67890" }) ) expect(test_action("12345")).to eq("67890") @@ -20,7 +20,7 @@ it "returns nil when Asana task is not assigned" do expect(@asana_client_tasks).to receive(:get_task).and_return( - double(assignee: double(gid: nil)) + double(assignee: { "gid" => nil }) ) expect(test_action("12345")).to eq(nil)