File: fix-test-broken-by-ruby-rack.patch

package info (click to toggle)
ruby-sinatra 3.0.5-3%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-proposed-updates
  • size: 1,944 kB
  • sloc: ruby: 17,305; makefile: 7
file content (11 lines) | stat: -rw-r--r-- 470 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
--- a/test/static_test.rb
+++ b/test/static_test.rb
@@ -164,7 +164,7 @@
   end
 
   it 'correctly ignores syntactically invalid range requests' do
-    ["bytes=45-40", "bytes=IV-LXVI", "octets=10-20", "bytes=", "bytes=3-1,4-5"].each do |http_range|
+    ["bytes=45-40", "octets=10-20", "bytes=", "bytes=3-1,4-5"].each do |http_range|
       request = Rack::MockRequest.new(@app)
       response = request.get("/#{File.basename(__FILE__)}", 'HTTP_RANGE' => http_range)