Hi,
I ve got a really strange issue with one of my test unit files…
When I run that test unit I get a Type Error:
test_planned_records_with_done_records(RindTod):
TypeError: {:rind=>#<Rind:0x4bdcfc8 @unsaved=false,
@rind_daten=[#<RindBrunst:0x
4f80300 @first_planungsdatum_change=false,
@attributes={“test_ergebnis_id”=>“2”,
“updated_at”=>“2008-01-09 22:22:28”, “planungsdatum”=>“2009-05-19”,
“gewicht”=>
nil, “todes_art_id”=>nil, “rind_mehrling_anzahl_id”=>nil,
“planungsregel_id”=>"3
", “rind_id”=>“6”, “hinten_links”=>“1”, “vorne_links”=>“1”,
“start_laktzyklus”=>
nil, “land_id”=>nil, “lock_version”=>“0”, “bemerkung”=>nil,
“kurzinfo”=>“Ergebni
s: Unbekannt”, “datum”=>nil, “type”=>"Rind
./test/unit/rind_tod_test.rb:53:in new' ./test/unit/rind_tod_test.rb:53:in
test_planned_records_with_done_records’
I ve got absolutely no idea why that error is happening.
Maybe anybody has an idea what might be the reason?
Thanks a lot.
–
Volker