We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f4ede5 commit 6f5348fCopy full SHA for 6f5348f
1 file changed
spec/unit/entitlements/backend/github_org/service_spec.rb
@@ -185,7 +185,7 @@
185
expect(logger).to receive(:debug).with("github.fake add_user_to_organization(user=bob, org=kittensinc, role=admin)")
186
expect(logger).to receive(:debug).with("Setting up GitHub API connection to https://github.fake/api/v3/")
187
expect(logger).to receive(:warn).with("User bob not found in GitHub instance github.fake, ignoring.")
188
-
+
189
stub_request(:put, "https://github.fake/api/v3/orgs/kittensinc/memberships/bob").to_return(
190
status: 404,
191
headers: {
@@ -196,7 +196,7 @@
196
"documentation_url" => "https://docs.github.com/rest"
197
})
198
)
199
200
result = subject.send(:add_user_to_organization, "bob", "admin")
201
expect(result).to eq(false)
202
end
0 commit comments