diff options
author | Vitali Tatarintev <vtatarintev@gitlab.com> | 2019-08-19 12:55:20 +0300 |
---|---|---|
committer | Vitali Tatarintev <vtatarintev@gitlab.com> | 2019-08-19 15:40:56 +0300 |
commit | 6a6411938a2854bb20dd358a481bb3f067df8271 (patch) | |
tree | f2150349e8094d56e6de8ffb7ca04243736a3cd0 /spec/support | |
parent | 224db2f8901964a34851018dd93b962a45a3032f (diff) |
Change `be_success` to `be_successful` in specs
Fixes deprecation warning:
```
DEPRECATION WARNING: The success? predicate is deprecated and
will be removed in Rails 6.0.
Please use successful? as provided by Rack::Response::Helpers.
```
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/shared_examples/controllers/external_authorization_service_shared_examples.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/shared_examples/controllers/external_authorization_service_shared_examples.rb b/spec/support/shared_examples/controllers/external_authorization_service_shared_examples.rb index 2faa0cf8c1c..d8a1ae83f61 100644 --- a/spec/support/shared_examples/controllers/external_authorization_service_shared_examples.rb +++ b/spec/support/shared_examples/controllers/external_authorization_service_shared_examples.rb @@ -8,7 +8,7 @@ shared_examples 'disabled when using an external authorization service' do it 'works when the feature is not enabled' do subject - expect(response).to be_success + expect(response).to be_successful end it 'renders a 404 with a message when the feature is enabled' do |