Sha256: 2330a8581ee53bb28e4ce8ff15d7ed62e20a99fc24f6129358117343bbeeedc1

Contents?: true

Size: 238 Bytes

Versions: 7

Compression:

Stored size: 238 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

7 entries across 7 versions & 1 rubygems

Version Path
authenticate-0.3.1 spec/model/token_spec.rb
authenticate-0.3.0 spec/model/token_spec.rb
authenticate-0.2.3 spec/model/token_spec.rb
authenticate-0.2.2 spec/model/token_spec.rb
authenticate-0.2.1 spec/model/token_spec.rb
authenticate-0.2.0 spec/model/token_spec.rb
authenticate-0.1.0 spec/model/token_spec.rb