summaryrefslogtreecommitdiff
path: root/spec/controllers/help_controller_spec.rb
diff options
context:
space:
mode:
authorVitali Tatarintev <vtatarintev@gitlab.com>2019-08-19 11:55:20 +0200
committerVitali Tatarintev <vtatarintev@gitlab.com>2019-08-19 14:40:56 +0200
commit6a6411938a2854bb20dd358a481bb3f067df8271 (patch)
treef2150349e8094d56e6de8ffb7ca04243736a3cd0 /spec/controllers/help_controller_spec.rb
parent224db2f8901964a34851018dd93b962a45a3032f (diff)
downloadgitlab-ce-6a6411938a2854bb20dd358a481bb3f067df8271.tar.gz
Change `be_success` to `be_successful` in specsfix-deprecation-warnings-change-success-to-successful
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/controllers/help_controller_spec.rb')
-rw-r--r--spec/controllers/help_controller_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/controllers/help_controller_spec.rb b/spec/controllers/help_controller_spec.rb
index 43c910da7a5..03b6e85b653 100644
--- a/spec/controllers/help_controller_spec.rb
+++ b/spec/controllers/help_controller_spec.rb
@@ -114,7 +114,7 @@ describe HelpController do
path: 'user/project/img/labels_default_v12_1'
},
format: :png
- expect(response).to be_success
+ expect(response).to be_successful
expect(response.content_type).to eq 'image/png'
expect(response.headers['Content-Disposition']).to match(/^inline;/)
end