Skip to content

Commit

Permalink
Update org name
Browse files Browse the repository at this point in the history
  • Loading branch information
xuanxu committed Apr 5, 2024
1 parent 784f9d7 commit 98a2451
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/lib/repository_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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))
Expand Down

0 comments on commit 98a2451

Please sign in to comment.