Sha256: 9b0ec846fe357cc3ce7d9767f5f57500af881b66d63244cc7e28111f56dccad7

Contents?: true

Size: 543 Bytes

Versions: 8

Compression:

Stored size: 543 Bytes

Contents

require 'spec_helper'

describe CodiceFiscale::Alphabet do
  describe '#letters' do
    it 'is 26 long' do
      subject.letters.size.should == 26
    end

    it 'return only upcased letters' do
      subject.letters.each { |letter| letter.upcase.should == letter }
    end
  end

  describe '#consonants' do
    it 'is 21 long' do
      subject.consonants.size.should == 21
    end
  end

  describe '#vocals' do
    it 'return only upcased letters' do
      subject.letters.each { |letter| letter.upcase.should == letter }
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
codice-fiscale-0.0.9 spec/lib/codice_fiscale/alphabet_spec.rb
codice-fiscale-0.0.8 spec/lib/codice_fiscale/alphabet_spec.rb
codice-fiscale-0.0.7 spec/lib/codice_fiscale/alphabet_spec.rb
codice-fiscale-0.0.6 spec/lib/codice_fiscale/alphabet_spec.rb
codice-fiscale-0.0.5 spec/lib/codice_fiscale/alphabet_spec.rb
codice-fiscale-0.0.4 spec/lib/codice_fiscale/alphabet_spec.rb
codice-fiscale-0.0.3 spec/lib/codice_fiscale/alphabet_spec.rb
codice-fiscale-0.0.2 spec/lib/codice_fiscale/alphabet_spec.rb