spec/models/sign_up_topic_spec.rb
Block has too many lines. [87/25] Open
Open
describe SignUpTopic do
let(:topic) { build(:topic) }
let(:suggestion) { build(:suggestion, id: 1, assignment_id: 1) }
let(:signed_up_team) { build(:signed_up_team) }
let(:team) { create(:assignment_team, id: 1, name: 'team 1', users: [user, user2]) }
- 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. [33/25] Open
Open
describe '.import' do
context 'when record is empty' do
it 'raises an ArgumentError' do
expect { SignUpTopic.import({}, nil, nil) }.to raise_error(ArgumentError, 'The CSV File expects the format: Topic identifier, Topic name, Max choosers, Topic Category (optional), Topic Description (Optional), Topic Link (optional).')
end
- 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. [26/25] Open
Open
context 'when record is not empty' do
let(:row) do
{ topic_identifier: 'identifier', topic_name: 'name', max_choosers: 'chooser', category: 'category', description: 'description', link: 'link' }
end
let(:session) do
- 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.