Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
appease rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
Jammjammjamm authored and Nicole Kennedy committed Aug 9, 2019
1 parent 6d55dc7 commit d97bc7b
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 10 deletions.
14 changes: 14 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,17 @@ Metrics/LineLength:
Exclude:
- 'lib/app/modules/**/*'
- 'lib/app/helpers/browser_logic.rb'

Metrics/AbcSize:
Exclude:
- 'lib/app/endpoint/oauth2_endpoints.rb'
- 'lib/app/endpoint/test_set_endpoints.rb'

Metrics/MethodLength:
Exclude:
- 'lib/app/endpoint/oauth2_endpoints.rb'
- 'lib/app/endpoint/test_set_endpoints.rb'

Metrics/PerceivedComplexity:
Exclude:
- 'lib/app/endpoint/oauth2_endpoints.rb'
29 changes: 19 additions & 10 deletions lib/app/endpoint/test_set_endpoints.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Inferno
class App
module TestSetEndpoints
Expand All @@ -11,10 +13,14 @@ def self.included(klass)
halt 404 if test_set.nil?
sequence_results = instance.latest_results_by_case

erb instance.module.view_by_test_set(params[:test_set_id]), {}, instance: instance,
test_set: test_set,
sequence_results: sequence_results,
error_code: params[:error]
erb(
instance.module.view_by_test_set(params[:test_set_id]),
{},
instance: instance,
test_set: test_set,
sequence_results: sequence_results,
error_code: params[:error]
)
end

get '/:id/test_sets/:test_set_id/report?' do
Expand Down Expand Up @@ -152,12 +158,15 @@ def self.included(klass)
out << js_stayalive(timer_count * stayalive_timer_seconds)
end

out << erb(instance.module.view_by_test_set(params[:test_set_id]), {}, instance: instance,
test_set: test_set,
sequence_results: instance.latest_results_by_case,
tests_running: true,
test_group: test_group.id
)
out << erb(
instance.module.view_by_test_set(params[:test_set_id]),
{},
instance: instance,
test_set: test_set,
sequence_results: instance.latest_results_by_case,
tests_running: true,
test_group: test_group.id
)

next_test_case = submitted_test_cases.shift
finished = next_test_case.nil?
Expand Down

0 comments on commit d97bc7b

Please sign in to comment.