Skip to content

Commit b9d4f47

Browse files
Update script_test.rb
1 parent 2f511ea commit b9d4f47

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/tests/test/script_test.rb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,15 @@ def test_main_present
3333
end
3434

3535
def test_main_protected
36-
actual = @obj.branch_protected?('main')
37-
assert(actual, 'Branch main is not protected')
36+
classic_protected = @obj.branch_protected?('main')
37+
ruleset_protected = @obj.branch_ruleset_protected?('main')
38+
assert(classic_protected || ruleset_protected, 'Branch main is not protected')
3839
end
3940

4041
def test_develop_present
41-
actual = @obj.branch_exist?('develop')
42-
assert(actual, 'Branch develop is not present')
42+
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')
4345
end
4446

4547
def test_develop_protected

0 commit comments

Comments
 (0)