Sha256: a8b6bd6f8cc4e32a2d77519c08135e6f5d14e3e339ba3025fd0e15b8ba93edcd
Contents?: true
Size: 440 Bytes
Versions: 5
Compression:
Stored size: 440 Bytes
Contents
require "spec_helper" describe "target class exposing flexible_enums" do it "allows consumers to find all defined flexible_enums" do expect(CashRegister.flexible_enums[:status].keys).to eq([:unknown, :not_active, :active, :alarm, :full, :empty]) expect(CashRegister.flexible_enums[:drawer_position].keys).to eq([:opened, :closed]) expect(CashRegister.flexible_enums[:manufacturer].keys).to eq([:honeywell, :sharp]) end end
Version data entries
5 entries across 5 versions & 1 rubygems