We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 595c315 commit 7842ff8Copy full SHA for 7842ff8
spec/models/repository_protected_branche_spec.rb
@@ -31,6 +31,8 @@ def build_protected_branch(opts = {})
31
it { should validate_presence_of(:permissions) }
32
it { should validate_presence_of(:user_list) }
33
34
+ it { should validate_uniqueness_of(:path).scoped_to([:permissions, :repository_id]) }
35
+
36
it { should validate_inclusion_of(:permissions).in_array(%w(RW RW+)) }
37
38
## Serializations
0 commit comments