Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: d673f5cb79
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (21 sloc) 0.649 kb
package co.freeside.betamax.tape
import spock.lang.*
@Unroll
@Issue('https://github.com/robfletcher/betamax/issues/53')
class BodyContentTypeSpec extends Specification {
void 'identifies #mimeType as #type'() {
expect:
MemoryTape.isTextContentType(mimeType) ^ isBinary
where:
mimeType | isBinary
'text/plain' | false
'application/json' | false
'application/javascript' | false
'application/xml' | false
'application/rss+xml' | false
'application/atom+xml' | false
'application/rdf+xml' | false
'image/png' | true
type = isBinary ? 'binary' : 'text'
}
}
Jump to Line
Something went wrong with that request. Please try again.