has_flash?()
Do we have a flash?
# File actionpack/lib/action_dispatch/testing/test_response.rb, line 67 def has_flash? ActiveSupport::Deprecation.warn("response.has_flash? has been deprecated. Use flash.any? instead", caller) !flash.empty? end