spec/controllers/popup_controller_spec.rb
Block has too many lines. [56/25] Open
Open
describe PopupController do
let(:team) { build(:assignment_team, id: 1, name: "team1", assignment: assignment) }
let(:student) { build(:student, id: 1, name: "student") }
let(:student2) { build(:student, id: 2, name: "student2") }
let(:participant) { build(:participant, id: 1, user: student, assignment: assignment) }
- Read upRead up
- Exclude checks
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. [27/25] Open
Open
describe "tone analysis tests" do
before(:each) do
allow(ReviewResponseMap).to receive(:where).with('reviewee_id = ?', team.id).and_return([response_map])
allow(Assignment).to receive(:find).with('reviewee_id = ?', team.id).and_return(assignment)
allow(ReviewResponseMap).to receive(:final_versions_from_reviewer).with(1).and_return(final_versions)
- Read upRead up
- Exclude checks
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.
Use underscores(_) as decimal mark and separate every 3 digits with them. Open
Open
review_round_one: {questionnaire_id: 1, response_ids: [77024]},
- Read upRead up
- Exclude checks
This cop checks for big numeric literals without _ between groups of digits in them.
Example:
# bad
1000000
1_00_000
1_0000
# good
1_000_000
1000
# good unless Strict is set
10_000_00 # typical representation of $10,000 in cents