Something went wrong. Try again.
Ruby implementation of Universal Entity IDs
Something went wrong. Try again.
1234567891011121314# frozen_string_literal: true
RSpec.describe "ActiveRecord class registry" do describe "hashing ActiveRecord models" do subject(:hash) { UEID::Registry.hash_for_class(Widget) }
it { is_expected.to be_a(Integer) }
it "is expected to map back to the model" do expect(UEID::Registry.class_for_hash(hash)).to eq(Widget) end endend