While trying to get the (edge) rails test suite to pass on my system i
encounter two failures that are showing up in the native mysql suite
and are passing with postgresql and sqlite. Both are taking place when
validating the uniqueness of string fields that contain utf8 chars.
Here is an examplary failing test:
Topic.create("title" => "一二三四五")
assert !Topic.new("title" => "一二三四五").valid?, "Shouldn't be
Shouldn't be valid.
<false> is not true.
The chars that are used in the title field are chinese 12345 (these
are also used in the real code) if someone has problems getting them
to show properly.
I have also opened a ticked with the attempt to get a specialized utf8
test in the test suite and remove the special chars from the basic
Would be nice if someone could review it.
Could you run these tests and verify (or not) them so i can be sure
that they are not somehow related to my environment?
From activerecord folder:
$ rake test_mysql TEST=test/cases/validations/
Thanks in advance