Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jaceklyp committed Sep 6, 2024
1 parent 8b72456 commit 6ed0cd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/asana_extract_task_assignee_action_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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)
Expand Down

0 comments on commit 6ed0cd2

Please sign in to comment.