diff options
| author | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2020-02-05 19:32:36 +1300 |
|---|---|---|
| committer | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2020-02-05 19:38:55 +1300 |
| commit | f71cff5703173333ec01f0451d488b82be0dd5d7 (patch) | |
| tree | 8e0addca32ae9610f2a0f87aced103a52b3fad21 /test | |
| parent | 4a6c17913fc0da3aec896d1a8912dd8a501c32d0 (diff) | |
| download | rack-f71cff5703173333ec01f0451d488b82be0dd5d7.tar.gz | |
Sort encodings by server preference. Implements #1184.
Diffstat (limited to 'test')
| -rw-r--r-- | test/spec_utils.rb | 1 |
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" |
