Sha256: f4c9316ee1ccf96023f81636e4a215fb9d1b3fcd064a90401bac931c97bc1437
Contents?: true
Size: 371 Bytes
Versions: 4
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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
twitter-5.1.1 | spec/twitter/token_spec.rb |
twitter-5.1.0 | spec/twitter/token_spec.rb |
twitter-5.0.1 | spec/twitter/token_spec.rb |
twitter-5.0.0 | spec/twitter/token_spec.rb |