This project is archived and is in readonly mode.
Failures in uniqueness_validation_test for ActiveRecord
Reported by Anuj Dutta | January 17th, 2010 @ 06:48 AM
Got these two errors on running test_mysql:
1) Failure: test_validate_uniqueness(UniquenessValidationTest) [rails/activerecord/test/cases/validations/uniqueness_validation_test.rb]: Shouldn't be valid 2) Failure: test_validate_uniqueness_with_limit_and_utf8(UniquenessValidationTest) [/rails/activerecord/test/cases/validations/uniqueness_validation_test.rb:251]: Created an event whose title, with limit taken into account, is not unique
Comments and changes to this ticket
-
Anuj Dutta January 17th, 2010 @ 06:49 AM
- Title changed from Errors in activerecord/test/cases/validations/uniqueness_validation_test to Failures in activerecord/test/cases/validations/uniqueness_validation_test
-
José Valim January 17th, 2010 @ 03:21 PM
- Title changed from Failures in activerecord/test/cases/validations/uniqueness_validation_test to Failures in uniqueness_validation_test for ActiveRecord
-
Ben Marini January 17th, 2010 @ 06:09 PM
I think this is related to this ticket:
https://rails.lighthouseapp.com/projects/16213/tickets/97-contribut...You have to create your mysql test databases with a character set of utf-8 for that test to pass.
-
warrenv January 17th, 2010 @ 10:22 PM
I was seeing the same two validation failures with 'rake test_mysql'.
After dropping the activerecord_unittest and activerecord_unittest2 databases
as follows, all tests are passing.mysql> create database activerecord_unittest character set 'utf8';
Query OK, 1 row affected (0.00 sec)mysql> create database activerecord_unittest2 character set 'utf8';
Query OK, 1 row affected (0.00 sec) -
José Valim January 17th, 2010 @ 10:30 PM
- State changed from new to invalid
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>