Pattern: Use of Rails setup
method
Issue: -
Checks that tests use RSpec before
hook over Rails setup
method.
# bad
setup do
allow(foo).to receive(:bar)
end
# good
before do
allow(foo).to receive(:bar)
end
Pattern: Use of Rails setup
method
Issue: -
Checks that tests use RSpec before
hook over Rails setup
method.
# bad
setup do
allow(foo).to receive(:bar)
end
# good
before do
allow(foo).to receive(:bar)
end