Forum: Typo [Typo] broken tests when running rake?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
5ce55767684e0cd1727db2b8b8975640?d=identicon&s=25 Steve Longdo (Guest)
on 2006-04-11 01:15
(Received via mailing list)
When running rake against r1004 I am seeing a lot of failures against
MySQL
and Ruby 1.8.4.  Is this the current state of things or should I not be
getting any errors?

207 tests, 197 assertions, 0 failures, 146 errors
rake aborted!
Test failures

Most of the errors seem to relate to the blog_id column an example:

ActiveRecord::StatementInvalid: Mysql::Error: Unknown column 'blog_id'
in
'field list': INSERT INTO contents (`updated_at`, `body`, `guid`, `url`,
`author`, `type`, `id`, `blog_id`, `article_id`, `created_at`, `email`)
VALUES ('2004-05-02 20:00:02', 'Comment body _italic_ *bold*',
'b1i2n3g4o5t6i7v', 'www.google.com', 'John Bar', 'Comment', 15, 1, 14,
'2004-05-02 20:00:02', 'john.bar@google.com')
Dc3f3775a7d03ba1be8958aaee881d6b?d=identicon&s=25 Scott Laird (Guest)
on 2006-04-11 01:37
(Received via mailing list)
rake migrate.

Scott
On 4/10/06, Steve Longdo <steve.longdo@gmail.com> wrote:> When running
rake against r1004 I am seeing a lot of failures against MySQL> and Ruby
1.8.4.  Is this the current state of things or should I not be> getting
any errors?>> 207 tests, 197 assertions, 0 failures, 146 errors> rake
aborted!> Test failures>> Most of the errors seem to relate to the
blog_id column an example:>> ActiveRecord::StatementInvalid:
Mysql::Error: Unknown column 'blog_id' in> 'field list': INSERT INTO
contents (`updated_at`, `body`, `guid`, `url`,> `author`, `type`, `id`,
`blog_id`, `article_id`, `created_at`, `email`)> VALUES ('2004-05-02
20:00:02', 'Comment body _italic_ *bold*',> 'b1i2n3g4o5t6i7v', '
www.google.com', 'John Bar', 'Comment', 15, 1, 14,> '2004-05-02
20:00:02', 'john.bar@google.com')>>>
_______________________________________________> Typo-list mailing list>
Typo-list@rubyforge.org>
http://rubyforge.org/mailman/listinfo/typo-list>>
5ce55767684e0cd1727db2b8b8975640?d=identicon&s=25 Steve Longdo (Guest)
on 2006-04-11 01:58
(Received via mailing list)
Thanks Scott!

I thought running rake db:test:prepare would take care of any migration
needs.

Also I notice it targets the DEV environment when I run it is this the
intended behaviour?

Anyway, that's got me further now only two tests fail in r1004.

test_mt_supported_methods(BackendControllerTest):
NoMethodError: You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occured while evaluating nil.length

test_mt_supported_text_filters(BackendControllerTest):
NoMethodError: You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occured while evaluating nil.length
6451ee8093c9cedc94f6c813b4dde2c5?d=identicon&s=25 Kevin Ballard (Guest)
on 2006-04-11 11:01
(Received via mailing list)
On Apr 10, 2006, at 4:55 PM, Steve Longdo wrote:

> I thought running rake db:test:prepare would take care of any
> migration needs.

No, it just clones the dev schema to the test database.

> Also I notice it targets the DEV environment when I run it is this
> the intended behaviour?

if you want to target production then use `rake migrate
RAILS_ENV=production`
3fd97b8297aab3006334d746f7c10b3d?d=identicon&s=25 Scott Bronson (Guest)
on 2006-04-12 06:16
(Received via mailing list)
On Mon, 2006-04-10 at 18:55 -0500, Steve Longdo wrote:
> The error occured while evaluating nil.length
I'm getting the same failures.  Has anyone looked into these?

I'm on 1005 fwiw.

    - Scott
This topic is locked and can not be replied to.