Sha256: d7974a81e5e488eafd27f7b47c4d51a11fa10187bdc96bf950830529435d2237

Contents?: true

Size: 524 Bytes

Versions: 10

Compression:

Stored size: 524 Bytes

Contents

require_relative "../spec_helper"

describe Kong::OAuth2Token do
  let(:valid_attribute_names) do
    %w(id credential_id expires_in created_at token_type access_token refresh_token scope authenticated_userid)
  end

  describe 'ATTRIBUTE_NAMES' do
    it 'contains valid names' do
      expect(subject.class::ATTRIBUTE_NAMES).to eq(valid_attribute_names)
    end
  end

  describe 'API_END_POINT' do
    it 'contains valid end point' do
      expect(subject.class::API_END_POINT).to eq('/oauth2_tokens/')
    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
kong-client-0.4.0 spec/kong/oauth2_token_spec.rb
kong-0.3.4 spec/kong/oauth2_token_spec.rb
kong-0.3.3 spec/kong/oauth2_token_spec.rb
kong-0.3.2 spec/kong/oauth2_token_spec.rb
kong-0.3.1 spec/kong/oauth2_token_spec.rb
kong-0.3.0 spec/kong/oauth2_token_spec.rb
kong-0.2.0 spec/kong/oauth2_token_spec.rb
kong-0.1.2 spec/kong/oauth2_token_spec.rb
kong-0.1.1 spec/kong/oauth2_token_spec.rb
kong-0.1.0 spec/kong/oauth2_token_spec.rb