Sha256: 3e89d90f258c11b7f2d4aa47024391a102d91bb9d3e49c10ebfefd2bc8bb1f5d
Contents?: true
Size: 371 Bytes
Versions: 14
Compression:
Stored size: 371 Bytes
Contents
require 'helper' describe Twitter::Token do describe '#bearer?' do it 'returns true when token is a bearer token' do token = Twitter::Token.new(:token_type => 'bearer') expect(token.bearer?).to be true end it 'returns false when token type is nil' do token = Twitter::Token.new expect(token.bearer?).to be false end end end
Version data entries
14 entries across 14 versions & 1 rubygems