mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 03:36:18 +08:00
16 lines
414 B
Ruby
16 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
|