Commit b32b80a0 authored by Kerri Miller's avatar Kerri Miller

Apply 1 suggestion(s) to 1 file(s)

parent 78583b0d
......@@ -7,11 +7,9 @@ RSpec.describe Gitlab::VisibilityLevelChecker do
let(:project) { create(:project) }
let(:override_params) { {} }
subject(:visibility_level_checker) { described_class.new(user, project, project_params: override_params) }
let(:result) { subject.level_restricted? }
describe '#level_restricted?' do
subject(:result) { described_class.new(user, project, project_params: override_params).level_restricted? }
context 'when visibility level is allowed' do
it 'returns false with nil for visibility level' do
expect(result.restricted?).to eq(false)
......
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