Use be_successful instead of be_success
We were getting a deprecation message in Rails 5.2: > The success? predicate is deprecated and will be removed in Rails 6.0. > Please use successful? as provided by Rack::Response::Helpers.
This commit is contained in:
@@ -8,6 +8,6 @@ describe Legislation::ProcessesController do
|
||||
|
||||
get :summary, params: { id: legislation_process, format: :xlsx }
|
||||
|
||||
expect(response).to be_success
|
||||
expect(response).to be_successful
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user