Added model specs
This commit is contained in:
parent
025a1b0175
commit
92ca24fc50
2 changed files with 10 additions and 0 deletions
5
spec/models/protected_branch/merge_access_level_spec.rb
Normal file
5
spec/models/protected_branch/merge_access_level_spec.rb
Normal 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
|
5
spec/models/protected_branch/push_access_level_spec.rb
Normal file
5
spec/models/protected_branch/push_access_level_spec.rb
Normal 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
|
Loading…
Reference in a new issue