We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b9d4f47 + 3ee1bfa commit 4007bb7Copy full SHA for 4007bb7
1 file changed
.github/tests/test/script_test.rb
@@ -33,15 +33,13 @@ def test_main_present
33
end
34
35
def test_main_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')
+ actual = @obj.branch_protected?('main')
+ assert(actual, 'Branch main is not protected')
39
40
41
def test_develop_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')
+ actual = @obj.branch_exist?('develop')
+ assert(actual, 'Branch develop is not present')
45
46
47
def test_develop_protected
0 commit comments