Sha256: add2260de9b7f8aa6951c90d6cf6df82d7d3cffbda6b904f840319adf5ecc3e8
Contents?: true
Size: 719 Bytes
Versions: 2
Compression:
Stored size: 719 Bytes
Contents
require 'spec_helper' describe CodiceFiscale::Alphabet do describe '#letters' do it 'is 26 long' do expect(subject.letters.size).to eq 26 end it 'consists only of upcased letters' do expect(subject.letters.join).to match /^[A-Z]{1,}$/ end end describe '#consonants' do it 'is 21 long' do expect(subject.consonants.size).to eq 21 end it 'consists only of upcased letters' do expect(subject.vowels.join).to match /^[A-Z]{1,}$/ end end describe '#vowels' do it 'is 5 long' do expect(subject.vowels.size).to eq 5 end it 'consists only of upcased letters' do expect(subject.vowels.join).to match /^[A-Z]{1,}$/ end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
codice-fiscale-1.0.1 | spec/lib/codice_fiscale/alphabet_spec.rb |
codice-fiscale-1.0.0 | spec/lib/codice_fiscale/alphabet_spec.rb |