summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrpereira2 <rpereira@gitlab.com>2019-02-05 23:07:19 +0530
committerrpereira2 <rpereira@gitlab.com>2019-02-06 21:09:00 +0530
commit4ef194c9f0bd19e6654578ba2328a985add03b24 (patch)
tree6f573845cd37a952ca8b22d54919a25dbb4fa1ea
parent7223631ee7bc05d64c958811227580c8fa63ae35 (diff)
downloadgitlab-ce-4ef194c9f0bd19e6654578ba2328a985add03b24.tar.gz
Split long lines
-rw-r--r--app/controllers/projects/error_tracking_controller.rb6
-rw-r--r--spec/controllers/projects/error_tracking_controller_spec.rb16
2 files changed, 16 insertions, 6 deletions
diff --git a/app/controllers/projects/error_tracking_controller.rb b/app/controllers/projects/error_tracking_controller.rb
index 32f923fa6e4..e752bd2ca78 100644
--- a/app/controllers/projects/error_tracking_controller.rb
+++ b/app/controllers/projects/error_tracking_controller.rb
@@ -45,7 +45,11 @@ class Projects::ErrorTrackingController < Projects::ApplicationController
end
def render_project_list_json
- service = ErrorTracking::ListProjectsService.new(project, current_user, list_projects_params)
+ service = ErrorTracking::ListProjectsService.new(
+ project,
+ current_user,
+ list_projects_params
+ )
result = service.execute
unless result[:status] == :success
diff --git a/spec/controllers/projects/error_tracking_controller_spec.rb b/spec/controllers/projects/error_tracking_controller_spec.rb
index 3cdcc89b385..3a3312cce21 100644
--- a/spec/controllers/projects/error_tracking_controller_spec.rb
+++ b/spec/controllers/projects/error_tracking_controller_spec.rb
@@ -29,7 +29,7 @@ describe Projects::ErrorTrackingController do
.and_return(status: :success, projects: [sentry_project])
end
- it 'returns a list of errors' do
+ it 'returns a list of projects' do
post :list_projects, params: list_projects_params
expect(response).to have_gitlab_http_status(:ok)
@@ -59,8 +59,11 @@ describe Projects::ErrorTrackingController do
let(:http_status) { :no_content }
before do
- expect(list_projects_service).to receive(:execute)
- .and_return(status: :error, message: error_message, http_status: http_status)
+ expect(list_projects_service).to receive(:execute).and_return(
+ status: :error,
+ message: error_message,
+ http_status: http_status
+ )
end
it 'returns http_status with message' do
@@ -169,8 +172,11 @@ describe Projects::ErrorTrackingController do
let(:http_status) { :no_content }
before do
- expect(list_issues_service).to receive(:execute)
- .and_return(status: :error, message: error_message, http_status: http_status)
+ expect(list_issues_service).to receive(:execute).and_return(
+ status: :error,
+ message: error_message,
+ http_status: http_status
+ )
end
it 'returns http_status with message' do