Added model specs

This commit is contained in:
Phil Hughes 2017-05-12 09:36:43 +01:00
parent 025a1b0175
commit 92ca24fc50
2 changed files with 10 additions and 0 deletions

View file

@ -0,0 +1,5 @@
require 'spec_helper'
describe ProtectedBranch::MergeAccessLevel, :models do
it { is_expected.to validate_inclusion_of(:access_level).in_array([Gitlab::Access::MASTER, Gitlab::Access::DEVELOPER, Gitlab::Access::NO_ACCESS]) }
end

View file

@ -0,0 +1,5 @@
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