Sha256: 5d555e195033e47587c4f1a2fe8a6da2d8d4dbd58306721f08e22f9388ec5099
Contents?: true
Size: 414 Bytes
Versions: 2
Compression:
Stored size: 414 Bytes
Contents
require 'spec_helper' describe Tincan::Utils do describe 'generate_code' do subject do Tincan::Utils.generate_code end it 'returns a string' do subject.must_be_kind_of String end it 'defaults to 8 characters' do subject.length.must_equal 8 end it 'supports odd numbers of characters' do Tincan::Utils.generate_code(7).length.must_equal 7 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tincan-0.1.6 | spec/unit/utils_spec.rb |
tincan-0.1.5 | spec/unit/utils_spec.rb |