Re: Problem with test_truth

Frederick Cheung
Sat, 21 Feb 2009 23:48:33 -0000

On 21 Feb 2009, at 20:51, Hello Guy wrote:

>
> hello all,
>
> i have a problem with test_truth.
>
>
> require ''test_helper''
>
> class MyDataTest < ActiveSupport::TestCase
> def test_truth
>   assert true
> end
>
> end
>
> this should ok without failures or errors. but it failure:
>
> 1) Error:
> test_truth(MyDataTest):
> ActiveRecord::StatementInvalid: Mysql::Error: Table
> ''alldataserver_test.members'' doesn''t exist:
DELETE FROM `members`
>
> whats here wrong?
> i understand table members is not exist in alldataserver_test, but
> why?
> here is a mistake with migration i think, can someone help me?
>
it means that there is a fixtures file called members.yml so rails
helpfully tries to load it into your test database but there is no
such table.

Fred
>
> lg
> --
> Posted via http://www.ruby-forum.com/.
>
> >