scottwillson/racing_on_rails

View on GitHub
test_ruby/models/calculations/v3/steps/place_by_place_test.rb

Summary

Maintainability
B
5 hrs
Test Coverage

Method test_many_ties has 89 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        def test_many_ties
          men_9_18 = Models::Category.new("Men 9-18")
          rules = Rules.new(category_rules: [Models::CategoryRule.new(men_9_18)], place_by: "place")
          calculator = Calculator.new(rules: rules, source_results: [])
          event_category = calculator.event_categories.first
Severity: Major
Found in test_ruby/models/calculations/v3/steps/place_by_place_test.rb - About 3 hrs to fix

    Method test_by_place has 39 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            def test_by_place
              category = Models::Category.new("Masters Men")
              rules = Rules.new(category_rules: [Models::CategoryRule.new(category)], place_by: "place")
              calculator = Calculator.new(rules: rules, source_results: [])
              event_category = calculator.event_categories.first
    Severity: Minor
    Found in test_ruby/models/calculations/v3/steps/place_by_place_test.rb - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status