DEPRECATION WARNING: render :text is deprecated because it does not actually render a text/plain response. Switch to render plain: 'plain text' to render as text/plain, render html: '<strong>HTML</strong>' to render as text/html, or render body: 'raw' to match the deprecated behavior and render with the default Content-Type, which is text/html
When running bundle exec rspec spec
Using Rails 5.0.2. Deprecation due to the line render :text. Solved locally by using render :plain instead.