class RuboCop::Cop::RSpec::SubjectDeclaration

Ensure that subject is defined using subject helper.

@example

# bad
let(:subject) { foo }
let!(:subject) { foo }
subject(:subject) { foo }
subject!(:subject) { foo }

# bad
block = -> {}
let(:subject, &block)

# good
subject(:test_subject) { foo }