Use be_successful instead of be_success

Rails 5.2 warns:

> The `success?` predicate is deprecated and will be removed in Rails 6.0.
> Please use `successful?` as provided by Rack::Response::Helpers.

RSpec correspondingly provides `be_successful`.
This commit is contained in:
Andrew Kvalheim 2022-01-23 14:06:02 -08:00
parent 3bbbdb4aae
commit e30880229c
9 changed files with 17 additions and 17 deletions

View file

@ -13,7 +13,7 @@ describe Api::V1::ConferencesController do
end
it 'returns successful response' do
expect(response).to be_success
expect(response).to be_successful
end
it 'returns all conferences' do
@ -32,7 +32,7 @@ describe Api::V1::ConferencesController do
end
it 'returns successful response' do
expect(response).to be_success
expect(response).to be_successful
end
it 'returns only one conference' do