expertiza/expertiza

View on GitHub
spec/models/waitlist_spec.rb

Summary

Maintainability
A
0 mins
Test Coverage

Block has too many lines. [32/25]
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) }
Severity: Minor
Found in spec/models/waitlist_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.

Space missing after comma.
Open

      allow(SignedUpTeam).to receive(:destroy).with([1,2]).and_return(true)
Severity: Minor
Found in spec/models/waitlist_spec.rb by rubocop

Checks for comma (,) not followed by some kind of space.

Example:

# bad
[1,2]
{ foo:bar,}

# good
[1, 2]
{ foo:bar, }

There are no issues that match your filters.

Category
Status