test/test_encoding.rb in dalli-1.1.4 vs test/test_encoding.rb in dalli-1.1.5

- old
+ new

@@ -1,10 +1,10 @@ # encoding: utf-8 require 'helper' require 'memcached_mock' -class TestEncoding < Test::Unit::TestCase +describe 'Encoding' do context 'using a live server' do should 'support i18n content' do memcached do |dc| key = 'foo' @@ -12,11 +12,11 @@ assert dc.set(key, utf8) assert_equal utf8, dc.get(key) # keys must be ASCII - assert_raise ArgumentError, /illegal character/ do + assert_raises ArgumentError, /illegal character/ do dc.set(bad_key, utf8) end end end @@ -31,13 +31,13 @@ end should 'not allow non-ASCII keys' do memcached do |dc| key = 'fooĆ’' - assert_raise ArgumentError do + assert_raises ArgumentError do dc.set(key, 'bar') end end end end -end \ No newline at end of file +end