scottwillson/racing_on_rails

View on GitHub
test_ruby/models/competitions/calculations/select_scores_test.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method test_apply_results_per_event_to_oldest_results_first has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      def test_apply_results_per_event_to_oldest_results_first
        scores = [
          score(numeric_place: 1, points: 30, participant_id: 1, date: Date.new(2015, 9, 13), event_id: 1),
          score(numeric_place: 2, points: 29, participant_id: 1, date: Date.new(2015, 9, 13), event_id: 1),
          score(numeric_place: 2, points: 29, participant_id: 1, date: Date.new(2015, 9, 13), event_id: 1),
Severity: Minor
Found in test_ruby/models/competitions/calculations/select_scores_test.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status