2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-03-04 01:15:08 +08:00
discourse/spec/models/category_group_spec.rb
2025-02-17 10:00:08 +01:00

15 lines
414 B
Ruby

# 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