Sha256: 586ae9722ba7cd916dbfc78489630f87973630003cab8a7ae23d0914158b07cc

Contents?: true

Size: 1.59 KB

Versions: 4

Compression:

Stored size: 1.59 KB

Contents

=begin
#Web API Swagger specification

#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: 1.0

Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 2.3.0-SNAPSHOT

=end

require 'spec_helper'
require 'json'

# Unit tests for AsposeCellsCloud::OAuthApi
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
# Please update as you see appropriate
describe 'OAuthApi' do
  before do
    # run before each test
	@configure = AsposeCellsCloud::Configuration.new
	@configure.base_path = ""
	@client = AsposeCellsCloud::ApiClient.new(@configure)
    @instance = AsposeCellsCloud::OAuthApi.new(@client)
  end

  after do
    # run after each test
  end

  describe 'test an instance of OAuthApi' do
    it 'should create an instance of OAuthApi' do
      expect(@instance).to be_instance_of(AsposeCellsCloud::OAuthApi)
    end
  end

  # unit tests for o_auth_post
  # Get Access token
  # 
  # @param grant_type Grant Type
  # @param client_id App SID
  # @param client_secret App Key
  # @param [Hash] opts the optional parameters
  # @return [AccessTokenResponse]
  describe 'o_auth_post test' do
    it "should work" do
      grant_type = $grant_type
      client_id = $client_id
      client_secret = $client_secret
      $access_token = @instance.o_auth_post(grant_type,client_id,client_secret).access_token

      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
aspose_cells_cloud-19.6 spec/api/o_auth_api_spec.rb
aspose_cells_cloud-19.2.1 spec/api/o_auth_api_spec.rb
aspose_cells_cloud-19.2 spec/api/o_auth_api_spec.rb
aspose_cells_cloud-18.11.1 spec/api/o_auth_api_spec.rb