Something went wrong. Try again.
Ruby implementation of Universal Entity IDs
Something went wrong. Try again.
123456789101112131415161718192021222324252627# frozen_string_literal: true
RSpec.describe UEID do it "has a version number" do expect(UEID::VERSION).not_to be nil end
describe ".generate" do subject(:ueid) { UEID.generate(Hash) }
it { is_expected.to be_a(String) }
it "is expected to have correct model hash" do ueid_obj = UEID::UEID.from_s(ueid) expect(ueid_obj.to_class).to eq(Hash) end end
describe ".to_class" do let(:ueid) { "019c2c83-8104-83fa-8417-5fb7e28a5464" }
subject(:klass) { UEID.to_class(ueid) }
it { is_expected.to eq(String) } endend