We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f511ea commit b9d4f47Copy full SHA for b9d4f47
1 file changed
.github/tests/test/script_test.rb
@@ -33,13 +33,15 @@ def test_main_present
33
end
34
35
def test_main_protected
36
- actual = @obj.branch_protected?('main')
37
- assert(actual, 'Branch main is not protected')
+ classic_protected = @obj.branch_protected?('main')
+ ruleset_protected = @obj.branch_ruleset_protected?('main')
38
+ assert(classic_protected || ruleset_protected, 'Branch main is not protected')
39
40
41
def test_develop_present
- actual = @obj.branch_exist?('develop')
42
- assert(actual, 'Branch develop is not present')
+ classic_protected = @obj.branch_protected?('develop')
43
+ ruleset_protected = @obj.branch_ruleset_protected?('develop')
44
+ assert(classic_protected || ruleset_protected, 'Branch develop is not present')
45
46
47
def test_develop_protected
0 commit comments