Konstantin Haase
49d4c90052
add #stream helper
2011-08-17 11:51:45 +02:00
Konstantin Haase
5558cc2c88
do not rely on to_ary, restores compatibility with Rails 3.1, fixes #325 and #326
2011-07-12 10:41:26 +02:00
Konstantin Haase
b0aca8d075
handle setting body to a Rack::Response
2011-05-13 11:00:05 +02:00
Konstantin Haase
8eb1abd459
fix handling of response.body
2011-05-13 10:35:17 +02:00
Konstantin Haase
e001d62669
adjust require lines for test helper, so it also works properly on 1.9.2
2011-05-11 09:44:02 +02:00
Simon Rozet
ff0d068687
Use contest instead of test/spec/mini
...
See <http://github.com/citrusbyte/contest > for more info. The
contest.rb file is included under the test/ directory.
2009-03-31 02:23:48 -07:00
Ryan Tomayko
c7dfca86cf
Calculate Content-Length using #bytesize instead of #length
...
String#length returns the number of characters in Ruby 1.9. We want
the number of bytes. I implemented this by aliasing String#bytesize
to String#length when #bytesize is not defined. This seems like a
harmless core extension since #bytesize didn't exist prior to 1.8.7.
2009-02-03 16:50:26 -08:00
Ryan Tomayko
bc7a939ce2
General spec coverage improvements (rcov: 98%)
2009-01-19 17:58:26 -08:00