diff options
author | Reuben Pereira <rpereira@gitlab.com> | 2019-03-01 17:51:54 +0300 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2019-03-01 17:51:54 +0300 |
commit | 43e713eb41117138c13ee4b9279321ca4331a302 (patch) | |
tree | 1f2047b2ba5279fdad38b0da18db32ba350311d8 /app/services/error_tracking/list_projects_service.rb | |
parent | 4471ab81c8484d9942183bd8114a757b8630b8ec (diff) |
Refactor model and spec
- Move some specs into contexts
- Let get_slugs method take a parameter and return a specific slug.
- Add rescues when using Addressable::URI.
Diffstat (limited to 'app/services/error_tracking/list_projects_service.rb')
-rw-r--r-- | app/services/error_tracking/list_projects_service.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/error_tracking/list_projects_service.rb b/app/services/error_tracking/list_projects_service.rb index c6e8be0f2be..4e92353a13c 100644 --- a/app/services/error_tracking/list_projects_service.rb +++ b/app/services/error_tracking/list_projects_service.rb @@ -28,8 +28,8 @@ module ErrorTracking (project.error_tracking_setting || project.build_error_tracking_setting).tap do |setting| setting.api_url = ErrorTracking::ProjectErrorTrackingSetting.build_api_url_from( api_host: params[:api_host], - organization_slug: nil, - project_slug: nil + organization_slug: 'org', + project_slug: 'proj' ) setting.token = params[:token] |