Commit 0a5c1b75 authored by Alex Kalderimis's avatar Alex Kalderimis

Explicitly disable design management when needed

parent fa1ac789
......@@ -892,6 +892,8 @@ RSpec.describe ProjectPolicy do
end
describe 'design permissions' do
include DesignManagementTestHelpers
let(:current_user) { guest }
let(:design_permissions) do
......@@ -899,12 +901,14 @@ RSpec.describe ProjectPolicy do
end
context 'when design management is not available' do
before do
enable_design_management(false)
end
it { is_expected.not_to be_allowed(*design_permissions) }
end
context 'when design management is available' do
include DesignManagementTestHelpers
before do
enable_design_management
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment