Hi,
I have a strange problem with testing classes which have a HABTM
relation. It seems that while running my tests with rake the fixture for
the association table is not loaded - as a result I get a failure on a
test which simply checks the number of associated elements - it says
it’s 0 although there should be one. The weird thing is that when I run
the tests with rcov there’s no failure Also, when I do script/console
“test” I can see that the association gets loaded and the same code that
fails in the test works.
Anybody seen something like this?
–
Agnieszka F.