Sha256: 2f34871180f651d55b75eadab8597c58b814b31a57b1ff5993c3766bbe9fecfd

Contents?: true

Size: 217 Bytes

Versions: 7

Compression:

Stored size: 217 Bytes

Contents

require 'spec_helper'

describe Clearance::Token do
  it 'is a random hex string' do
    token = 'my_token'
    SecureRandom.stubs(:hex).with(20).returns(token)

    expect(Clearance::Token.new).to eq token
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
clearance-1.5.1 spec/clearance/token_spec.rb
clearance-1.5.0 spec/clearance/token_spec.rb
clearance-1.4.3 spec/clearance/token_spec.rb
clearance-1.4.2 spec/clearance/token_spec.rb
clearance-1.4.1 spec/clearance/token_spec.rb
clearance-1.4.0 spec/clearance/token_spec.rb
clearance-1.3.0 spec/clearance/token_spec.rb