gitlab-org--gitlab-foss/spec/models/protected_branch/push_access_level_spec.rb
2017-05-12 09:36:43 +01:00

5 lines
231 B
Ruby

require 'spec_helper'
describe ProtectedBranch::PushAccessLevel, :models do
it { is_expected.to validate_inclusion_of(:access_level).in_array([Gitlab::Access::MASTER, Gitlab::Access::DEVELOPER, Gitlab::Access::NO_ACCESS]) }
end