Displaying 1 result from an estimated 1 matches for "intl_image".
2005 Dec 20
0
Problem destroying in unit tests with HABTM
.../gems/1.8/gems/activerecord-1.13.1/lib/active_record/transactions.rb:122:in
`destroy''
I have a category table an asset table and an assets_categories table
My destroy unit tests looks like this:
def test_destroy
#check to ensure asset belongs to categories
assert_equal false, @intl_image.categories.empty?
@intl_image.categories.clear
#check to ensure the asset now belongs to no categories
assert_equal true, @intl_image.categories.empty?
@intl_image.save
@intl_image.reload
@img = Asset.find(@intl_image.id)
-ftsq1ey501zBNWXE1URa6A@public.gmane.org
assert_rai...