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:
Javi Martín
2020-10-07 13:35:51 +02:00
parent 7496c1bcb9
commit 040ec9f588

View File

@@ -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