spec/controllers/invitations_controller_spec.rb
Block has too many lines. [70/25] Open
Open
describe InvitationsController do
let(:instructor) { build(:instructor, id: 6) }
let(:student) { build(:student) }
let(:admin) { build(:admin) }
let(:ta) { build(:teaching_assistant, id: 8) }
- 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. [28/25] Open
Open
describe '#action_allowed?' do
context 'when current user is student' do
it 'allows the actions' do
user = student
stub_current_user(user, user.role.name, user.role)
- 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.