From 98a24519b0d1ba1742a69c6b960435b9b09b7f83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanjo=20Baz=C3=A1n?= Date: Fri, 5 Apr 2024 14:33:09 +0200 Subject: [PATCH] Update org name --- spec/lib/repository_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/lib/repository_spec.rb b/spec/lib/repository_spec.rb index 41c3e358b..990f14296 100644 --- a/spec/lib/repository_spec.rb +++ b/spec/lib/repository_spec.rb @@ -54,7 +54,7 @@ it "returns false invitation is not created" do expect(Octokit).to receive(:user).and_return(OpenStruct.new(id: 33)) - expected_url = "https://api.github.com/orgs/openjournals/invitations" + expected_url = "https://api.github.com/orgs/JuliaCon/invitations" expected_params = {invitee_id: 33, team_ids: [1234]} exheaders = {"Authorization" => "token testGHtoken", "Content-Type" => "application/json", "Accept" => "application/vnd.github.v3+json"} expect(Faraday).to receive(:post).with(expected_url, expected_params.to_json, exheaders).and_return(OpenStruct.new(status: 404)) @@ -64,7 +64,7 @@ it "returns true if invitation is created" do expect(Octokit).to receive(:user).and_return(OpenStruct.new(id: 42)) - expected_url = "https://api.github.com/orgs/openjournals/invitations" + expected_url = "https://api.github.com/orgs/JuliaCon/invitations" expected_params = {invitee_id: 42, team_ids: [1234]} exheaders = {"Authorization" => "token testGHtoken", "Content-Type" => "application/json", "Accept" => "application/vnd.github.v3+json"} expect(Faraday).to receive(:post).with(expected_url, expected_params.to_json, exheaders).and_return(OpenStruct.new(status: 200))