Skip to content

A platform for community discussion. Free, open, simple.

414 B
Raw Blame
# frozen_string_literal: true

RSpec.describe CategoryGroup do
  describe "#permission_types" do
    context "when verifying enum sequence" do
      it "'full' should be at 1st position" do
        expect(described_class.permission_types[:full]).to eq(1)
      end

      it "'readonly' should be at 3rd position" do
        expect(described_class.permission_types[:readonly]).to eq(3)
      end
    end
  end
end