Sha256: a1d2b04c3c298949b7b161d0b8517057a4d1a01ece5f8a920b631454c1009f0d
Contents?: true
Size: 612 Bytes
Versions: 45
Compression:
Stored size: 612 Bytes
Contents
# -*- encoding : utf-8 -*- describe Card::Set::Right::Token do before do @token = Card["Anonymous+*account"].fetch trait: :token, new: {} end it "gets expiration from configuration by default" do expect(@token.term).to eq(Card.config.token_expiry) end it "gets expiration from card if it exists" do @token.expiration = "3 days" expect(@token.term).to eq(3.days) expect(@token.permanent?).to be false end it 'is permanent if expiration is "none"' do @token.expiration = "none" expect(@token.term).to eq("permanent") expect(@token.permanent?).to be true end end
Version data entries
45 entries across 45 versions & 1 rubygems