Sha256: ba2a2ca840e9449f56f12153561ab06896a97b5b8283805f5bc93fe986ecd3de
Contents?: true
Size: 901 Bytes
Versions: 1
Compression:
Stored size: 901 Bytes
Contents
# frozen_string_literal: true require_relative "../spec_helper" RSpec.describe "DIVISIONS" do let(:subject) do ToWords::Divisions::DIVISIONS end it { is_expected.to be_a Array } it "has 7 items" do expect(subject.length).to eq 7 end it "has '' at index 0" do expect(subject[0]).to eq "" end it "has Thousand at index 1" do expect(subject[1]).to eq "Thousand" end it "has Million at index 2" do expect(subject[2]).to eq "Million" end it "has Billion at index 3" do expect(subject[3]).to eq "Billion" end it "has Trillion at index 4" do expect(subject[4]).to eq "Trillion" end it "has Quadrillion at index 5" do expect(subject[5]).to eq "Quadrillion" end it "has Quintrillion at index 6" do expect(subject[6]).to eq "Quintrillion" end it "is expected to be frozen" do expect(subject.frozen?).to be true end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
to_words-1.1.1 | spec/to_words/division_spec.rb |