Pattern: Ambiguous declaration of subject
Issue: -
Ensure that subject is defined using subject helper.
# bad
let(:subject) { foo }
let!(:subject) { foo }
subject(:subject) { foo }
subject!(:subject) { foo }
# bad
block = -> {}
let(:subject, &block)
# good
subject(:test_subject) { foo }