spec/lib/workos/organizations_spec.rb in workos-3.1.0 vs spec/lib/workos/organizations_spec.rb in workos-4.0.0

- old
+ new

@@ -119,11 +119,12 @@ end context 'with the before option' do it 'forms the proper request to the API' do request_args = [ - '/organizations?before=before-id', + '/organizations?before=before-id&'\ + 'order=desc', 'Content-Type' => 'application/json' ] expected_request = Net::HTTP::Get.new(*request_args) @@ -141,11 +142,12 @@ end context 'with the after option' do it 'forms the proper request to the API' do request_args = [ - '/organizations?after=after-id', + '/organizations?after=after-id&'\ + 'order=desc', 'Content-Type' => 'application/json' ] expected_request = Net::HTTP::Get.new(*request_args) @@ -161,10 +163,11 @@ end context 'with the limit option' do it 'forms the proper request to the API' do request_args = [ - '/organizations?limit=10', + '/organizations?limit=10&'\ + 'order=desc', 'Content-Type' => 'application/json' ] expected_request = Net::HTTP::Get.new(*request_args)