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

Version Path
twitter-5.11.0 spec/twitter/token_spec.rb
twitter-5.10.0 spec/twitter/token_spec.rb
twitter-5.9.0 spec/twitter/token_spec.rb
twitter-5.8.0 spec/twitter/token_spec.rb
twitter-5.7.1 spec/twitter/token_spec.rb
twitter-5.7.0 spec/twitter/token_spec.rb
twitter-5.6.0 spec/twitter/token_spec.rb
twitter-5.5.1 spec/twitter/token_spec.rb
twitter-5.5.0 spec/twitter/token_spec.rb
twitter-5.4.1 spec/twitter/token_spec.rb
twitter-5.4.0 spec/twitter/token_spec.rb
twitter-5.3.1 spec/twitter/token_spec.rb
twitter-5.3.0 spec/twitter/token_spec.rb
twitter-5.2.0 spec/twitter/token_spec.rb