Skip to content

Commit

Permalink
Make the linter happy v2
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmacgowan committed Dec 14, 2023
1 parent ab12625 commit 89687bf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/unit/entitlements/backend/github_team/service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -585,13 +585,13 @@
it "raises when user is not found" do
expect(subject).to receive(:validate_team_id_and_slug!).with(1001, "russian-blues").and_return(true)
expect(subject).to receive(:org_members).and_return(Set.new(%w[blackmanx]))

add_membership_response = {
"url" => "https://github.fake/api/v3/teams/1001/memberships/blackmanx",
"role" => "member",
"state" => "active"
}

stub_request(:put, "https://github.fake/api/v3/teams/1001/memberships/blackmanx")
.to_return(
status: 404,
Expand Down Expand Up @@ -622,13 +622,13 @@
it "ignores 404s" do
expect(subject).to receive(:validate_team_id_and_slug!).with(1001, "russian-blues").and_return(true)
expect(subject).to receive(:org_members).and_return(Set.new(%w[blackmanx]))

add_membership_response = {
"url" => "https://github.fake/api/v3/teams/1001/memberships/blackmanx",
"role" => "member",
"state" => "active"
}

stub_request(:put, "https://github.fake/api/v3/teams/1001/memberships/blackmanx")
.to_return(
status: 404,
Expand Down

0 comments on commit 89687bf

Please sign in to comment.