expertiza/expertiza

View on GitHub
spec/controllers/student_teams_controller_spec.rb

Summary

Maintainability
A
0 mins
Test Coverage

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

describe StudentTeamsController do
  # Including the stubbed objects from the teams_shared.rb file
  include_context 'object initializations'
  # Including the shared method from the teams_shared.rb file
  include_context 'authorization check'

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.

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

  describe '#update' do
    # When the name is not already present in the database, it updates the name
    context 'update team name when matching name not found' do
      it 'update name when the name is not already present in the database' do
        allow(AssignmentTeam).to receive(:where).with(name: 'test', parent_id: 1).and_return([])

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.

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

  describe 'POST #create' do
    # When assignment team is empty it flashes a notice
    context 'when create Assignment team' do
      it 'flash notice when team is empty' do
        allow(AssignmentTeam).to receive(:where).with(name: '', parent_id: 1).and_return([])

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