diff --git a/.github/tests/test/script_test.rb b/.github/tests/test/script_test.rb index 3394c8f..d2858e4 100644 --- a/.github/tests/test/script_test.rb +++ b/.github/tests/test/script_test.rb @@ -33,15 +33,13 @@ def test_main_present end def test_main_protected - classic_protected = @obj.branch_protected?('main') - ruleset_protected = @obj.branch_ruleset_protected?('main') - assert(classic_protected || ruleset_protected, 'Branch main is not protected') + actual = @obj.branch_protected?('main') + assert(actual, 'Branch main is not protected') end def test_develop_present - classic_protected = @obj.branch_protected?('develop') - ruleset_protected = @obj.branch_ruleset_protected?('develop') - assert(classic_protected || ruleset_protected, 'Branch develop is not present') + actual = @obj.branch_exist?('develop') + assert(actual, 'Branch develop is not present') end def test_develop_protected