summaryrefslogtreecommitdiff
path: root/spec/unit/response/response_spec.rb
AgeCommit message (Collapse)AuthorFilesLines
2012-11-30Optional setting of status code on redirectStormwind1-0/+8
2012-11-30Add redirect to responseStormwind1-0/+10
Now a relocation can be done, by calling redirect with the URL you want relocate to. This will set the Location header and set the status code to 302.
2012-11-24Content-Length must be a StringStormwind1-7/+7
2012-11-24Add an = at the end of the content_type methodStormwind1-3/+3
Shall made use of this functionality more confortable, even if it's not a real attribute of this class.
2012-11-24Delete Content-Length. Conten-Type and body on status 304Stormwind1-0/+11
2012-11-23Delete Content-Length. Conten-Type and body on status 204Stormwind1-0/+11
Should work, but somehow it doesn't...
2012-11-23Sets the Content-Type in to_a unless it is already set beforeStormwind1-3/+16
The default value is 'text/html'.
2012-11-23content_type sets the Content-Type header to the given valueStormwind1-3/+11
2012-11-23Sets the Content-Length in to_a unless it is already set beforeStormwind1-2/+9
2012-11-23Sets Content-Type header in to_aStormwind1-1/+6
2012-11-23Sets Content-Length to body string bytesizeStormwind1-0/+8
Sets the Conten-Length to the bytesize of the joined body to cover UTF-8
2012-11-23Sets Content-Length to body string lengthStormwind1-0/+7
It joins the body array to a string and sets the Content-Length header to its length.
2012-11-23content_length sets the Content-Length to 0Stormwind1-0/+11
The method content_length creates a header named Content-Length and sets its value to 0.
2012-11-19Rename #finish to #to_a in response specsStormwind1-1/+1
2012-11-18Restructure response specsStormwind1-32/+35
Also no change in behaviour
2012-11-18Add default value for the bodyStormwind1-0/+6
2012-11-18Add default value for headerStormwind1-1/+7
2012-11-17Add default value to status codeStormwind1-1/+4
2012-11-17Converts any input in status to an integerStormwind1-0/+10
2012-11-16Add simple response objectStormwind1-0/+19