Skip to content

Commit 4007bb7

Browse files
Merge pull request #4 from Practical-DevOps-GitHub/online-marathon-patch-1
Update script_test.rb
2 parents b9d4f47 + 3ee1bfa commit 4007bb7

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

.github/tests/test/script_test.rb

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

3535
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')
36+
actual = @obj.branch_protected?('main')
37+
assert(actual, 'Branch main is not protected')
3938
end
4039

4140
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')
41+
actual = @obj.branch_exist?('develop')
42+
assert(actual, 'Branch develop is not present')
4543
end
4644

4745
def test_develop_protected

0 commit comments

Comments
 (0)