Sha256: fed96530b288c57cd7a170d9394547fdf727a31b4fb0bec24a7ae1eb57ec7562
Contents?: true
Size: 1.26 KB
Versions: 3
Compression:
Stored size: 1.26 KB
Contents
=begin Artik Cloud API OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git License: MIT http://en.wikipedia.org/wiki/MIT_License Terms of Service: http://www.samsung.com/global/business/mobile/info/terms-and-conditions.html =end require 'spec_helper' require 'json' # Unit tests for ArtikCloud::TokensApi # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate describe 'TokensApi', :vcr do let(:instance) { ArtikCloud::TokensApi.new(API_CLIENT) } describe 'test an instance of TokensApi' do it 'should create an instact of TokensApi' do expect(instance).to be_a(ArtikCloud::TokensApi) end end describe 'token_info test' do it "should work" do response = instance.token_info expect(response).to be_a(ArtikCloud::TokenInfoSuccessResponse) expect(response.data.expires_in).to_not be_nil end end describe 'refresh_token test' do it "should work" do pending 'refresh_token is invalid, a good one is needed' refresh_token = "bb90333aee114b3e97284814d978080d" response = instance.refresh_token("refresh_token", refresh_token) response.should be_a(ArtikCloud::RefreshTokenResponse) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
artikcloud-2.1.0 | spec/api/tokens_api_spec.rb |
artikcloud-2.0.8 | spec/api/tokens_api_spec.rb |
artikcloud-2.0.7 | spec/api/tokens_api_spec.rb |