Add WorkOS::Portal.list_organizations#48
Conversation
Codecov Report
@@ Coverage Diff @@
## master #48 +/- ##
==========================================
+ Coverage 98.87% 98.95% +0.07%
==========================================
Files 13 15 +2
Lines 267 287 +20
==========================================
+ Hits 264 284 +20
Misses 3 3
Continue to review full report at Codecov.
|
| # so we're using Sorbet throughout this Ruby gem. | ||
| module Types | ||
| require_relative 'types/connection_struct' | ||
| require_relative 'types/list_struct' |
There was a problem hiding this comment.
This really threw me though a loop and lost a couple hours to finding this...
Thoughts on pulling require_all?
There was a problem hiding this comment.
Will follow up with this in a future PR to avoid merge conflicts.
| expect(Net::HTTP::Get).to receive(:new).with(*request_args). | ||
| and_return(expected_request) | ||
|
|
||
| VCR.use_cassette 'organization/list', match_requests_on: [:path] do |
There was a problem hiding this comment.
I decided to use the same cassette for all the tests since the response is handled the same regardless. What we really want to test is the request we are sending out and trusting the API will Do The Right Thing™. expected_request is the real test in these option tests.
0f780b5 to
8d88e37
Compare
* Returns a list of the organizations accessible to the provided API key. Includes pagination functionality via the list_metadata property.
8d88e37 to
0bdf5aa
Compare
|
@marktran @maxchehab This has been updated with the new naming we outlined in our call today. |
* Resolves a hidden step needed before adding a file to the types folder that can be confusing for developers new to the SDK codebase. * Discussion here: #48 (comment)
* Resolves a hidden step needed before adding a file to the types folder that can be confusing for developers new to the SDK codebase. * Discussion here: #48 (comment)
* Resolves a hidden step needed before adding a file to the types folder that can be confusing for developers new to the SDK codebase. * Discussion here: #48 (comment)
* Resolves a hidden step needed before adding a file to the types folder that can be confusing for developers new to the SDK codebase. * Discussion here: #48 (comment)
* Returns a list of the organizations accessible to the provided API key. Includes pagination functionality via the list_metadata property.
* Resolves a hidden step needed before adding a file to the types folder that can be confusing for developers new to the SDK codebase. * Discussion here: #48 (comment)
* Returns a list of the organizations accessible to the provided API key. Includes pagination functionality via the list_metadata property.
* Resolves a hidden step needed before adding a file to the types folder that can be confusing for developers new to the SDK codebase. * Discussion here: #48 (comment)
API key. Includes pagination functionality via the list_metadata
property.