Sha256: 241700c56d7921f02400538480a0a75ceee99a20c402c039b190967a196d15d5
Contents?: true
Size: 541 Bytes
Versions: 8
Compression:
Stored size: 541 Bytes
Contents
require 'spec_helper' describe CodiceFiscale::Codes do describe '#month_letter' do context 'the given number is greater than 0 and less than 12' do it 'return a letter' do subject.month_letter(1).should == 'A' end end context 'the given number is greater than 12' do it 'return nil' do subject.month_letter(13).should be_nil end end context 'the given number is less than 1' do it 'return nil' do subject.month_letter(0).should be_nil end end end end
Version data entries
8 entries across 8 versions & 1 rubygems