1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00
Commit graph

11 commits

Author SHA1 Message Date
Konstantin Haase
397dbc768c avoid to_enum warning on 2.0 2013-03-10 13:09:15 +01:00
Konstantin Haase
7e53bee806 adjust response tests for edge rack 2012-12-12 22:27:03 +01:00
Zachary Scott
46e8bd67b3 First pass at block styles for tests
TODO:
* test/routing_test.rb
* test/settings_test.rb
2012-05-21 17:21:59 -04:00
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