test/charset_test.rb in rack-accept-0.4.2 vs test/charset_test.rb in rack-accept-0.4.3
- old
+ new
@@ -1,9 +1,8 @@
-require File.dirname(__FILE__) + '/helper'
+require File.expand_path('../helper', __FILE__)
class CharsetTest < Test::Unit::TestCase
-
C = Rack::Accept::Charset
def test_qvalue
c = C.new('')
assert_equal(0, c.qvalue('unicode-1-1'))
@@ -39,7 +38,6 @@
assert_equal('iso-8859-5', c.best_of(%w< iso-8859-5 unicode-1-1 >))
assert_equal('iso-8859-5', c.best_of(%w< iso-8859-5 utf-8 >))
assert_equal('iso-8859-1', c.best_of(%w< iso-8859-1 utf-8 >))
assert_equal(nil, c.best_of(%w< utf-8 >))
end
-
end