expertiza/expertiza

View on GitHub
spec/features/bookmark_review_spec.rb

Summary

Maintainability
A
0 mins
Test Coverage

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

describe 'bookmark review testing' do
  let(:bookmark_rating_response_map) { build(:review_response_map, type: 'BookmarkRatingResponseMap') }
  before(:each) do
    create(:assignment, name: 'TestAssignment', directory_path: 'test_assignment', use_bookmark: true)
    create_list(:participant, 3)

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_bookmark_list is too high. [24/15]
Open

  def load_bookmark_list
    login_as('student2064')
    expect(page).to have_content 'User: student2064'
    expect(page).to have_content 'TestAssignment'

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

There are no issues that match your filters.

Category
Status