Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (11 sloc) 305 Bytes
# encoding: UTF-8
# Reproduce by running `ruby -I. yajl_test.rb`
require 'rubygems'
require 'minitest/autorun'
require 'yajl'
class YajlTest < MiniTest::Unit::TestCase
def test_json_encoder
json = Yajl::Encoder.encode({'message' => "á"})
assert_equal("{\"message\":\"á\"}", json)
end
end