- Error
DEPRECATION WARNING: The success? predicate is deprecated and will be removed in Rails 6.0. Please use successful?
- Sample code
# deprecated
expect(response).to be_success
# collect
expect(response).to be_successful
- Replace code in spec
$ grep -rl be_success ./spec/* | xargs sed -i'' "s/be_success/be_successful/g"
For OS X: