Pattern: Overwriting let
/subject
Issue: -
Checks if there is a let
/subject
that overwrites an existing one.
# bad
let(:foo) { bar }
let(:foo) { baz }
subject(:foo) { bar }
let(:foo) { baz }
let(:foo) { bar }
let!(:foo) { baz }
# good
subject(:test) { something }
let(:foo) { bar }
let(:baz) { baz }
let!(:other) { other }