Sha256: d9d81c2d1aa33ec1c5943920a212027af4951de9349e5aa236fc7fd3b112b513
Contents?: true
Size: 279 Bytes
Versions: 1
Compression:
Stored size: 279 Bytes
Contents
require 'spec_helper' describe TokenAction::TokenGenerator do describe '.included' do describe '#generate_token' do it 'should return a random alphanumeric string' do Cat.generate_token(:token).should match(/\A[A-Za-z0-9]{20}\z/) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
token_action-0.0.1 | spec/token_action/mixins/token_generator_spec.rb |