scottwillson/racing_on_rails

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

Summary

Maintainability
C
7 hrs
Test Coverage

Method test_bar has 81 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        def test_bar
          category_pro_1_2 = Models::Category.new("Category Pro/1/2 Women")
          category_3 = Models::Category.new("Category 3 Women")
          category_rules = [
            Models::CategoryRule.new(category_pro_1_2),

    Method test_do_not_reject_unplaced has 78 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            def test_do_not_reject_unplaced
              category_pro_1_2 = Models::Category.new("Category Pro/1/2 Women")
              category_rules = [
                Models::CategoryRule.new(category_pro_1_2)
              ]

      Method test_calculate has 38 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              def test_calculate
                rules = Rules.new(
                  points_for_place: [100, 75, 50, 20, 10],
                  results_per_event: 3,
                  team: true

        There are no issues that match your filters.

        Category
        Status