Sha256: a7925b168da38f60bbe596e0ca80f4cb7cd080abb8ac1fe9390dd0c513d0bac5
Contents?: true
Size: 600 Bytes
Versions: 1
Compression:
Stored size: 600 Bytes
Contents
# frozen_string_literal: true require_relative "../spec_helper" RSpec.describe "UNDER_HUNDRED" do let(:subject) do ToWords::UnderHundred::UNDER_HUNDRED end it { is_expected.to be_a Hash } it "has all keys to be integers" do integer_class = 1.class # Fixnum before Ruby 2.4, Integer from Ruby 2.4 expect(subject.keys.all? { |key| key.is_a? integer_class }).to be true end it "has all values to be strings" do expect(subject.values.all? { |value| value.is_a? String }).to be true 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/under_hundred_spec.rb |