summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2020-02-05 19:32:36 +1300
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2020-02-05 19:36:08 +1300
commitbc4cbce8aa8b90999fdfb7ee77c5986a95f4edcb (patch)
tree566b410279a82dc4ddf920ad244471fde59864c0 /test
parente4c6353cfe84c4b6ecdab0d890871e8769dab6dc (diff)
downloadrack-server-encodings-preference.tar.gz
Sort encodings by server preference. Implements #1184.server-encodings-preference
Diffstat (limited to 'test')
-rw-r--r--test/spec_utils.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/spec_utils.rb b/test/spec_utils.rb
index e25070bc..9a2d29e6 100644
--- a/test/spec_utils.rb
+++ b/test/spec_utils.rb
@@ -444,6 +444,7 @@ describe Rack::Utils do
helper.call(%w(compress gzip identity), [["compress", 1.0], ["gzip", 1.0]]).must_equal "compress"
helper.call(%w(compress gzip identity), [["compress", 0.5], ["gzip", 1.0]]).must_equal "gzip"
+ helper.call(%w(compress gzip identity), [["gzip", 1.0], ["compress", 1.0]]).must_equal "compress"
helper.call(%w(foo bar identity), []).must_equal "identity"
helper.call(%w(foo bar identity), [["*", 1.0]]).must_equal "foo"