Sha256: dc9792f37a261abc385b80b9f36995eb70e668d73d74d8dbf05cdac98d7e3c9e

Contents?: true

Size: 668 Bytes

Versions: 1

Compression:

Stored size: 668 Bytes

Contents

require "spec_helper"

module NATO
  RSpec.describe Text do
    Given(:text) { Text.new "a8h43lnr0" }

    describe "#to_nato" do
      Then do
        expect(text.to_nato).to eq \
          "Alfa Eight Hotel Four Three Lima November Romeo Zero"
      end
    end

    describe "#to_s" do
      Given { allow(text).to receive(:to_nato) }

      Then do
        expect(text.to_s).to eq \
          "Alfa Eight Hotel Four Three Lima November Romeo Zero"
      end
    end

    describe "#pronunciation" do
      Then do
        expect(text.pronunciation).to eq \
          "AL-FAH AIT HOH-TEL FOW-ER TREE LEE-MAH NO-VEM-BER ROW-ME-OH ZEE-RO"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
NATO-0.1.0 spec/text_spec.rb