Sha256: dbfa0298470cf35cd4d94f16bfe77fb2ce1e460855fc0c3b7433797d057ea878
Contents?: true
Size: 667 Bytes
Versions: 38
Compression:
Stored size: 667 Bytes
Contents
require 'spec_helper' describe Auth0::Api::V2::Blacklists do let(:client) { Auth0Client.new(v2_creds) } let(:token) { 'faketoken' } describe '.add_token_to_blacklist', vcr: true do it 'should add a token to the blacklist' do expect do client.add_token_to_blacklist( token, v2_creds[:client_id] ) end.to_not raise_error end end describe '.blacklisted_tokens', vcr: true do it 'should get the added token from the blacklist' do expect(client.blacklisted_tokens.first).to( include( 'aud' => v2_creds[:client_id], 'jti' => token ) ) end end end
Version data entries
38 entries across 38 versions & 1 rubygems