Pattern: Use of let
after example
Issue: -
Checks for let
definitions that come after an example.
# Bad
let(:foo) { bar }
it 'checks what foo does' do
expect(foo).to be
end
let(:some) { other }
it 'checks what some does' do
expect(some).to be
end
# Good
let(:foo) { bar }
let(:some) { other }
it 'checks what foo does' do
expect(foo).to be
end
it 'checks what some does' do
expect(some).to be
end