Sha256: 44ca540f6b883c43505a4f63c322216a3caba64ebddec59d1ca9f6d881449dce

Contents?: true

Size: 237 Bytes

Versions: 10

Compression:

Stored size: 237 Bytes

Contents

require 'spec_helper'

describe Authenticate::Token do
  it 'is a random hex string' do
    token = 'my_token'
    allow(SecureRandom).to receive(:hex).with(20).and_return(token)
    expect(Authenticate::Token.new).to eq token
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
authenticate-0.7.3 spec/model/token_spec.rb
authenticate-0.7.2 spec/model/token_spec.rb
authenticate-0.7.1 spec/model/token_spec.rb
authenticate-0.7.0 spec/model/token_spec.rb
authenticate-0.6.1 spec/model/token_spec.rb
authenticate-0.6.0 spec/model/token_spec.rb
authenticate-0.5.0 spec/model/token_spec.rb
authenticate-0.4.0 spec/model/token_spec.rb
authenticate-0.3.3 spec/model/token_spec.rb
authenticate-0.3.2 spec/model/token_spec.rb