Welcome to mirror list, hosted at ThFree Co, Russian Federation.

active_record_enum.rb « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4bb1f696315ef3a2e727b7f19613ffedc1d42d93 (plain)
1
2
3
4
5
6
7
8
9
# frozen_string_literal: true

shared_examples 'Unique enum values' do
  described_class.defined_enums.each do |name, hash|
    it "has unique values in #{name}" do
      expect(hash.values).to contain_exactly(*hash.values.uniq)
    end
  end
end