expertiza/expertiza

View on GitHub
spec/features/view_team_spec.rb

Summary

Maintainability
A
0 mins
Test Coverage

Assignment Branch Condition size for add_review is too high. [41/15]
Open

  def add_review
    login_as(User.where(role_id: 1).first.name)
    expect(page).to have_content 'User: ' + User.where(role_id: 1).first.name

    expect(page).to have_content 'TestAssignment'
Severity: Minor
Found in spec/features/view_team_spec.rb by rubocop

This cop checks that the ABC size of methods is not higher than the configured maximum. The ABC size is based on assignments, branches (method calls), and conditions. See http://c2.com/cgi/wiki?AbcMetric

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

describe 'peer review testing' do
  # User first and second are on AssignmentTeam first
  # User third is on AssignmentTeam second
  # User third is mapped to review team one
  # User second is mapped to review team two
Severity: Minor
Found in spec/features/view_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.

Assignment Branch Condition size for load_your_scores is too high. [35/15]
Open

  def load_your_scores
    login_as(User.where(role_id: 1).third.name)
    expect(page).to have_content 'User: ' + User.where(role_id: 1).third.name

    click_link 'Assignments'
Severity: Minor
Found in spec/features/view_team_spec.rb by rubocop

This cop checks that the ABC size of methods is not higher than the configured maximum. The ABC size is based on assignments, branches (method calls), and conditions. See http://c2.com/cgi/wiki?AbcMetric

Method has too many lines. [16/10]
Open

  def add_review
    login_as(User.where(role_id: 1).first.name)
    expect(page).to have_content 'User: ' + User.where(role_id: 1).first.name

    expect(page).to have_content 'TestAssignment'
Severity: Minor
Found in spec/features/view_team_spec.rb by rubocop

This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.

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

  before(:each) do
    create(:assignment, name: 'TestAssignment', directory_path: 'test_assignment')
    create_list(:participant, 3)
    create(:assignment_node)
    create(:deadline_type, name: 'submission')
Severity: Minor
Found in spec/features/view_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