odd unit test failures

2 views
Skip to first unread message

rogerdpack

unread,
Nov 22, 2010, 10:49:28 AM11/22/10
to substruct
Hello all. When I run the unit tests;

$ rake test:plugins:all PLUGIN=substruct (windows 7, 1.8.6)

I get lots of these:

51) Error:
test_nil_price_no_product(VariationTest):
ActiveRecord::StatementInvalid: Mysql::Error: Column 'price' cannot be
null: UPDATE `items` SET `price` = NULL WHERE `id` = 179288416
/vendor/plugins/substruct/test/unit/variation_test.rb:138:in
`test_nil_price_no_product'

Does anybody have an inkling what may have caused this?
Thanks!

rogerdpack

unread,
Nov 22, 2010, 11:38:52 AM11/22/10
to substruct
> test_nil_price_no_product(VariationTest):
> ActiveRecord::StatementInvalid: Mysql::Error: Column 'price' cannot be
> null: UPDATE `items` SET `price` = NULL WHERE `id` = 179288416
>     /vendor/plugins/substruct/test/unit/variation_test.rb:138:in
> `test_nil_price_no_product'

Looks like this may have meant either "don't run two tests
simultaneously" or "you need to do a rails substruct:db:boostrap
RAILS_ENV=test" first (possibly).

I do see some failures currently:

304 tests, 907 assertions, 3 failures, 9 errors

( https://gist.github.com/710217 )

Anybody else getting those?
Thanks!
-r

Melissa

unread,
Nov 25, 2010, 9:50:52 AM11/25/10
to substruct
Looks like I was missing a few gems from the "new" environment.rb
file.
Sorry for the noise (though there are still a few failures in
there...https://gist.github.com/710217)
Cheers!
-r
Reply all
Reply to author
Forward
0 new messages