Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Failures in uniqueness_validation_test for ActiveRecord

#3720

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

Reported by Anuj Dutta · January 17th, 2010 @ 06:48 AM

State: invalid
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Anuj Dutta
    Anuj Dutta
    • Title changed from Errors in activerecord/test/cases/validations/uniqueness_validation_test to Failures in activerecord/test/cases/validations/uniqueness_validation_test

    January 17th, 2010 @ 06:49 AM

  2. José Valim
    José Valim
    • Title changed from Failures in activerecord/test/cases/validations/uniqueness_validation_test to Failures in uniqueness_validation_test for ActiveRecord

    January 17th, 2010 @ 03:21 PM

  3. Ben Marini
    Ben Marini

    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.

    January 17th, 2010 @ 06:09 PM

  4. warrenv
    warrenv

    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)

    January 17th, 2010 @ 10:22 PM

  5. José Valim
    José Valim
    • State changed from new to invalid

    January 17th, 2010 @ 10:30 PM