# Getting an error while running activerecord test suite

**URL:** <https://www.ruby-forum.com/t/getting-an-error-while-running-activerecord-test-suite/187905>\
**Category:** Rails\
**Created:** [May 1, 2010, 1:05pm UTC](https://www.ruby-forum.com/t/getting-an-error-while-running-activerecord-test-suite/187905 "2010-05-01T13:05:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Neeraj\_Singh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/90db22/32.png) [@Neeraj\_Singh](https://www.ruby-forum.com/u/Neeraj_Singh)\
**Post date:** [May 1, 2010, 1:05pm UTC](https://www.ruby-forum.com/t/getting-an-error-while-running-activerecord-test-suite/187905/1 "2010-05-01T13:05:29Z")

</div>

I downloaded the rails edge

> cd activerecord  
> rake test\_mysql

I am getting an exception at line 165 block.

> <https://github.com/rails/rails/blob/main/activerecord/test/cases/validations/uniqueness_validation_test.rb#L165>

Line 169 (  
[http://github.com/rails/rails/blob/master/activerecord/test/cases/validations/uniqueness\_validation\_test.rb#L169](http://github.com/rails/rails/blob/master/activerecord/test/cases/validations/uniqueness_validation_test.rb#L169))  
says that if database is not UTF-8 then test will fail.

I think my database is UTF-8. Take a look at this.

> <https://gist.github.com/neerajdotname/386040>

What am I missing? What do I need to do so that this test passes.

For the sake of completeness I would a say I have one test in error  
( this one) and two other tests are failing. It seems the other two  
failing tests are also because of UTF-8 issue.

Thanks

---

<div class="post-metadata">

**Author:** ![Neeraj\_Singh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/90db22/32.png) [@Neeraj\_Singh](https://www.ruby-forum.com/u/Neeraj_Singh)\
**Post date:** [May 1, 2010, 2:56pm UTC](https://www.ruby-forum.com/t/getting-an-error-while-running-activerecord-test-suite/187905/2 "2010-05-01T14:56:06Z")

</div>

This issue is resolved. For the record I resolved this issue by  
creating database through rake task.

rake mysql:drop\_databases  
rake mysql:build\_databases
