test/test_mysql2xxxx.rb in mysql2xxxx-0.0.3 vs test/test_mysql2xxxx.rb in mysql2xxxx-0.0.4
- old
+ new
@@ -1,24 +1,28 @@
+# coding: utf-8
require 'helper'
class TestMysql2xxxx < Test::Unit::TestCase
- def test_mysql2json
+ def test_1_mysql2json
a = Mysql2xxxx::JSON.new @options
str = a.to_s
assert str.include?('Acura')
+ assert str.include?('Citro\\u00ebn')
assert !str.include?('DaimlerChrysler')
end
- def test_mysql2csv
+ def test_2_mysql2csv
a = Mysql2xxxx::CSV.new @options
str = a.to_s
assert str.include?('Acura')
+ assert str.include?('Citroën')
assert !str.include?('DaimlerChrysler')
end
- def test_mysql2xml
+ def test_3_mysql2xml
a = Mysql2xxxx::XML.new @options
str = a.to_s
assert str.include?('Acura')
+ assert str.include?('Citroën')
assert !str.include?('DaimlerChrysler')
end
end