spec/models/waitlist_spec.rb
Block has too many lines. [32/25] Open
Open
describe Waitlist do
let(:topic1) { build(:topic, id: 1) }
let(:topic2) { build(:topic, id: 2) }
let(:signedupteam1) { build(:signed_up_team) }
let(:signedupteam2) { build(:signed_up_team) }
- 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.
Space missing after comma. Open
Open
allow(SignedUpTeam).to receive(:destroy).with([1,2]).and_return(true)
- Read upRead up
- Exclude checks
Checks for comma (,) not followed by some kind of space.
Example:
# bad
[1,2]
{ foo:bar,}
# good
[1, 2]
{ foo:bar, }