Sha256: 50e026e3a6eb965e9a1132c3997f16738d4a2446039fa3901e874aa12c63106d
Contents?: true
Size: 352 Bytes
Versions: 3
Compression:
Stored size: 352 Bytes
Contents
require 'rails_helper' RSpec.describe ProxyAuth::Token do subject { described_class.instance } context '#valid?' do it 'returns true for valid token' do expect(subject.valid? subject.token).to be_truthy end it 'returns false for invalid token' do expect(subject.valid? "#{subject.token}1").to be_falsey end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
proxy_auth-0.0.6 | spec/proxy_auth/token_spec.rb |
proxy_auth-0.0.5 | spec/proxy_auth/token_spec.rb |
proxy_auth-0.0.4 | spec/proxy_auth/token_spec.rb |