diff options
author | Phil Hughes <me@iamphill.com> | 2017-05-12 09:36:43 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-05-12 09:36:43 +0100 |
commit | 92ca24fc50b72f4ba7da1008ddb234fbadaf6737 (patch) | |
tree | e328aded4d1d3ef58a3ecfff857e4c522cec00f8 /spec/models | |
parent | 025a1b01758662fed033380d3ae69149d2966e0c (diff) | |
download | gitlab-ce-92ca24fc50b72f4ba7da1008ddb234fbadaf6737.tar.gz |
Added model specs
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/protected_branch/merge_access_level_spec.rb | 5 | ||||
-rw-r--r-- | spec/models/protected_branch/push_access_level_spec.rb | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/spec/models/protected_branch/merge_access_level_spec.rb b/spec/models/protected_branch/merge_access_level_spec.rb new file mode 100644 index 00000000000..1e7242e9fa8 --- /dev/null +++ b/spec/models/protected_branch/merge_access_level_spec.rb @@ -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 diff --git a/spec/models/protected_branch/push_access_level_spec.rb b/spec/models/protected_branch/push_access_level_spec.rb new file mode 100644 index 00000000000..de68351198c --- /dev/null +++ b/spec/models/protected_branch/push_access_level_spec.rb @@ -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 |