ece517-p3/expertiza

View on GitHub
spec/models/assignment_team_spec.rb

Summary

Maintainability
B
4 hrs
Test Coverage

Block has too many lines. [352/25]
Open

describe 'AssignmentTeam' do
  let(:team_without_submitted_hyperlinks) { build(:assignment_team, submitted_hyperlinks: "") }
  let(:team) { build(:assignment_team, id: 1, parent_id: 1) }
  let(:assignment) { build(:assignment, id: 1) }
  let(:participant1) { build(:participant, id: 1) }
Severity: Minor
Found in spec/models/assignment_team_spec.rb by rubocop

This cop checks if the length of a block exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable. The cop can be configured to ignore blocks passed to certain methods.

File assignment_team_spec.rb has 354 lines of code (exceeds 250 allowed). Consider refactoring.
Open

describe 'AssignmentTeam' do
  let(:team_without_submitted_hyperlinks) { build(:assignment_team, submitted_hyperlinks: "") }
  let(:team) { build(:assignment_team, id: 1, parent_id: 1) }
  let(:assignment) { build(:assignment, id: 1) }
  let(:participant1) { build(:participant, id: 1) }
Severity: Minor
Found in spec/models/assignment_team_spec.rb - About 4 hrs to fix

    Block has too many lines. [26/25]
    Open

      describe "#scores" do
        context "when a hash of question is given" do
          it "returns the score received by the team" do
            questionnaire1 = build(:questionnaire, id: 1)
            questionnaire2 = build(:questionnaire, id: 2)
    Severity: Minor
    Found in spec/models/assignment_team_spec.rb by rubocop

    This cop checks if the length of a block exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable. The cop can be configured to ignore blocks passed to certain methods.

    There are no issues that match your filters.

    Category
    Status