Sha256: 66253d3748066c0a2d97eb9c305a64214f02466e8967599d9177ed50cd08c2e1

Contents?: true

Size: 481 Bytes

Versions: 1

Compression:

Stored size: 481 Bytes

Contents

require 'spec_helper'

describe PhoneticAlphabet do
  it 'has a version number' do
    expect(PhoneticAlphabet::VERSION).not_to be nil
  end

  it 'adds a to_p method to the string class' do
    expect("".methods.include?(:to_p)).to eq(true)
  end

  it 'translates strings to their phonetic representation' do
    expect('fuck'.to_p).to eq('Foxtrot Uniform Charlie Kilo')
    expect('a'.to_p).to eq('Alfa')
    expect('a1 day'.to_p).to eq('Alfa One  Delta Alfa Yankee')
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
phonetic_alphabet-0.1.0 spec/phonetic_alphabet_spec.rb