expect{push_new_file(branch_name)}.toraise_error(QA::Git::Repository::RepositoryCommandError,/remote: GitLab: You are not allowed to push code to protected branches on this project\.([\s\S]+)\[remote rejected\] #{branch_name} -> #{branch_name} \(pre-receive hook declined\)/)