Sha256: 18f1a30c7a36f993282a8e0df9fabe6fb3e9a2a2e4769dfbaef606474f0035fe
Contents?: true
Size: 418 Bytes
Versions: 2
Compression:
Stored size: 418 Bytes
Contents
# dynamically mixed in to response objects module Relevance module CoreExtensions module Response def html? # some versions of Rails integration tests don't set content type # so we are treating nil as html. A better fix would be welcome here. ((content_type =~ %r{^text/html}) != nil) || content_type == nil end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tarantula-0.4.1 | lib/relevance/core_extensions/response.rb |
tarantula-0.4.0 | lib/relevance/core_extensions/response.rb |