aboutsummaryrefslogtreecommitdiff
path: root/spec/unit
AgeCommit message (Collapse)AuthorFilesLines
2012-12-23Remove 1.8 fixesStormwind1-147/+0
The fixes for Ruby 1.8 will take place in a seperate gem. So I remove all the changes here.
2012-12-22Replace 'parse_query_string' with 'decode_www_form_18' in testStormwind1-21/+23
2012-12-22Renamed specfile. Will test other method here.Stormwind1-0/+0
2012-12-22Improve query valid regexStormwind1-1/+27
Now a query string cannot look like 'foo=bar=foo' anymore.
2012-12-22Add first implementation of decode_www_form_18Stormwind1-0/+8
Seperates now foo=bar&bar=foo;baz=foo queries. But does not fix url encoded strings and such things. Also added testcase for an empty query string.
2012-12-22Add patch for URI decode_www_formStormwind1-0/+111
Plus some specs. This should it make later possible to make Zero work with Ruby 1.8. But at the moment it only routes to the original decode_www_form method, if it exists. Otherwise it returns an empty Array. So this will still fail on the 1.8 versions at the moment.
2012-12-18reuse render for actual renderingGibheer1-0/+19
The splitting of rendering and processing is good, but on the other side it makes some double steps or even introduce workarounds. That is why I made the method #render just a call to the renderer. This should help much more than the strict seperation. The method will only return the resulting string and not add it to the body of the response. That still has to be taken care of by the user.
2012-12-17cleanup gemfile for jruby on travisGibheer1-0/+0
2012-12-17initialize the responseGibheer1-0/+14
2012-12-13added options to controllerGibheer1-2/+2
This avoids hardcoding the options into the controller and therefore should it make possible to use Rack::Request or Sinatra apps as requests. (That sounds so weird.)
2012-12-12replaced .create with .new on Zero::RequestGibheer3-5/+5
2012-12-10define the renderer at initializationGibheer1-1/+6
2012-12-01avoid changing existing environment keysGibheer1-0/+12
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-30specs for the renderer accessGibheer1-0/+11
2012-11-30use URI to get parametersGibheer2-6/+20
2012-11-29don't overwrite the requestGibheer1-0/+8
2012-11-29Throws an ArgumentError, if no template fits given typesStormwind1-0/+10
2012-11-29Throws ArgumentError, if given template does not existStormwind1-0/+6
2012-11-29Add default value for default templatesStormwind1-0/+11
If a template has no type specifcation in it's name, then we use 'default' as map name now.
2012-11-29added custom parameters in the routerGibheer1-5/+18
2012-11-29added custom parameterGibheer2-0/+74
2012-11-27better specs for renderGibheer1-21/+21
2012-11-26now the renderer correctly saves all templatesGibheer1-5/+5
Before this fix the renderer was not able to save the templates and types in the correct way. It still needs some cleanup, but it works now.
2012-11-26specs for renderingGibheer1-0/+34
2012-11-26first commit for the new rendererGibheer4-39/+56
This part handles the building of the template tree, which then gets used later by the containers.
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-23Merge remote-tracking branch 'origin/master'Stormwind1-0/+14
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-20added a basic spec for the controllerGibheer1-0/+14
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-16added specs for Renderer.transformGibheer1-0/+32
2012-11-16not needed anymoreGibheer1-7/+0
2012-11-16documentet the renderer and added a specGibheer1-0/+10
2012-11-16corrected the naming of #accept, before #media_typesGibheer1-0/+7