test/charset_test.rb in rack-accept-0.2 vs test/charset_test.rb in rack-accept-0.3

- old
+ new

@@ -20,9 +20,12 @@ assert_equal(0.5, c.qvalue('iso-8859-1')) c = C.new('iso-8859-1;q=0, *;q=0.5') assert_equal(0.5, c.qvalue('iso-8859-5')) assert_equal(0, c.qvalue('iso-8859-1')) + + c = C.new('*;q=0') + assert_equal(0, c.qvalue('iso-8859-1')) end def test_matches c = C.new('iso-8859-1, iso-8859-5, *') assert_equal(%w{*}, c.matches(''))