Sha256: 3025e34a552d4e6167360a9f36b2310d8eea22e203290ad7b8c4516fd9b29750

Contents?: true

Size: 371 Bytes

Versions: 1

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

1 entries across 1 versions & 1 rubygems

Version Path
twitter-5.0.0.rc.1 spec/twitter/token_spec.rb