Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Kozono <mkozono@gmail.com>2017-05-16 22:58:46 +0300
committerMichael Kozono <mkozono@gmail.com>2017-06-05 15:32:26 +0300
commitbad08fbea2a32655a6d87f2140840c317cea6c80 (patch)
treedc690059a2ce53d055c1eb2738a832c36f1ee89c /spec/support
parentb387429458f77a3608e077dfe2d50b0a313f8832 (diff)
Move CI access logic into GitAccess
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/git_http_helpers.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/spec/support/git_http_helpers.rb b/spec/support/git_http_helpers.rb
index d3d51560a9d..b8289e6c5f1 100644
--- a/spec/support/git_http_helpers.rb
+++ b/spec/support/git_http_helpers.rb
@@ -52,14 +52,17 @@ module GitHttpHelpers
end
def git_access_error(error_key)
- Gitlab::GitAccess::ERROR_MESSAGES[error_key]
+ message = Gitlab::GitAccess::ERROR_MESSAGES[error_key]
+ message || raise("GitAccess error message key '#{error_key}' not found")
end
def git_access_wiki_error(error_key)
- Gitlab::GitAccessWiki::ERROR_MESSAGES[error_key]
+ message = Gitlab::GitAccessWiki::ERROR_MESSAGES[error_key]
+ message || raise("GitAccessWiki error message key '#{error_key}' not found")
end
def change_access_error(error_key)
- Gitlab::Checks::ChangeAccess::ERROR_MESSAGES[error_key]
+ message = Gitlab::Checks::ChangeAccess::ERROR_MESSAGES[error_key]
+ message || raise("ChangeAccess error message key '#{error_key}' not found")
end
end