gitlab-org--gitlab-foss/spec/models/protected_branch/merge_access_level_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
264 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2017-05-12 04:36:43 -04:00
require 'spec_helper'
RSpec.describe ProtectedBranch::MergeAccessLevel do
it { is_expected.to validate_inclusion_of(:access_level).in_array([Gitlab::Access::MAINTAINER, Gitlab::Access::DEVELOPER, Gitlab::Access::NO_ACCESS]) }
2017-05-12 04:36:43 -04:00
end