diff options
author | Jasper Maes <jaspermaes.jm@gmail.com> | 2018-11-28 19:08:21 +0100 |
---|---|---|
committer | Jasper Maes <jaspermaes.jm@gmail.com> | 2018-11-29 08:05:13 +0100 |
commit | 1bb4ad9262efde3b7aefddf849480a102763a68f (patch) | |
tree | c8dfa743811928645c97ab3f813fe5101010a517 /spec/controllers/application_controller_spec.rb | |
parent | a5f4627857bddc7e431d0fca6f17560e4b07e0b9 (diff) | |
download | gitlab-ce-1bb4ad9262efde3b7aefddf849480a102763a68f.tar.gz |
Fix deprecation: render :text is deprecated because it does not actually render a text/plain response
Diffstat (limited to 'spec/controllers/application_controller_spec.rb')
-rw-r--r-- | spec/controllers/application_controller_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/controllers/application_controller_spec.rb b/spec/controllers/application_controller_spec.rb index 1b585bcd4c6..ac92b2ca657 100644 --- a/spec/controllers/application_controller_spec.rb +++ b/spec/controllers/application_controller_spec.rb @@ -114,7 +114,7 @@ describe ApplicationController do skip_before_action :authenticate_user!, only: :index def index - render text: 'authenticated' + render html: 'authenticated' end end @@ -401,7 +401,7 @@ describe ApplicationController do context 'terms' do controller(described_class) do def index - render text: 'authenticated' + render html: 'authenticated' end end @@ -444,7 +444,7 @@ describe ApplicationController do attr_reader :last_payload def index - render text: 'authenticated' + render html: 'authenticated' end def append_info_to_payload(payload) |