Pattern: Missing actual for expect(...)
Issue: -
Checks for expect(...)
calls containing literal values.
# bad
expect(5).to eq(price)
expect(/foo/).to eq(pattern)
expect("John").to eq(name)
# good
expect(price).to eq(5)
expect(pattern).to eq(/foo/)
expect(name).to eq("John")
Name | Default value | Configurable values |
---|---|---|
Exclude | spec/routing/**/* |
Array |