Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions .github/tests/test/script_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading