mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-16 21:24:05 +00:00
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:
parent
3bbbdb4aae
commit
e30880229c
9 changed files with 17 additions and 17 deletions
|
|
@ -21,7 +21,7 @@ describe Api::V1::SpeakersController do
|
|||
|
||||
get :index, params: { format: :json }
|
||||
json = JSON.parse(response.body)['speakers']
|
||||
expect(response).to be_success
|
||||
expect(response).to be_successful
|
||||
expect(json.pluck('name')).to contain_exactly('Conf_Speaker', 'Speaker')
|
||||
end
|
||||
end
|
||||
|
|
@ -32,7 +32,7 @@ describe Api::V1::SpeakersController do
|
|||
get :index, params: { conference_id: conference.short_title, format: :json }
|
||||
json = JSON.parse(response.body)['speakers']
|
||||
|
||||
expect(response).to be_success
|
||||
expect(response).to be_successful
|
||||
|
||||
expect(json.length).to eq(1)
|
||||
expect(json[0]['name']).to eq('Conf_Speaker')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue