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

6 lines
222 B
Ruby
Raw Normal View History

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