search for: message_thread_test

Displaying 1 result from an estimated 1 matches for "message_thread_test".

2008 Jan 04
5
Confused by the unit test results.
..., message.body assert !thread.messages[0].nil? #line 182, and the line below, line 183 assert thread.messages.find(:first, :conditions => {:body => ''total awesomeness''}), ''Cannot find message'' end --------------------------------- Loaded suite message_thread_test Started .............F Finished in 0.285501 seconds. 1) Failure: test_valid_message_new(MessageThreadTest) [message_thread_test.rb: 183]: Cannot find message. <nil> is not true. --------------------------------- Why doesn''t method find() find anything? Is the :condition parameter...