test/multipass_test.rb in multipass-1.2.1 vs test/multipass_test.rb in multipass-1.2.2
- old
+ new
@@ -18,9 +18,16 @@
def test_decodes_multipass_with_class_method
encoded = @mp.encode(@input)
assert_equal @input, MultiPass.decode('example', 'abc', encoded)
end
+ def test_decodes_unicode
+ @input[:name] = "Bj\\u00f8rn"
+ encoded = @mp.encode(@input)
+ decoded = @mp.decode(encoded)
+ assert_equal "Bjørn", decoded[:name]
+ end
+
def test_invalidates_bad_string
assert_raises MultiPass::DecryptError do
@mp.decode("abc")
end
end
\ No newline at end of file