File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
spec/unit/entitlements/backend/github_org Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 185185 expect ( logger ) . to receive ( :debug ) . with ( "github.fake add_user_to_organization(user=bob, org=kittensinc, role=admin)" )
186186 expect ( logger ) . to receive ( :debug ) . with ( "Setting up GitHub API connection to https://github.fake/api/v3/" )
187187 expect ( logger ) . to receive ( :warn ) . with ( "User bob not found in GitHub instance github.fake, ignoring." )
188-
188+
189189 stub_request ( :put , "https://github.fake/api/v3/orgs/kittensinc/memberships/bob" ) . to_return (
190190 status : 404 ,
191191 headers : {
196196 "documentation_url" => "https://docs.github.com/rest"
197197 } )
198198 )
199-
199+
200200 result = subject . send ( :add_user_to_organization , "bob" , "admin" )
201201 expect ( result ) . to eq ( false )
202202 end
You can’t perform that action at this time.
0 commit comments