>   def test_should_delete_word
>     assert_equal :published, words(:one).status
>     delete :destroy, :id => words(:one).to_param
>     reload!
>     word_status = Word.find(:id).status
>     assert_equal :deleted, word_status
>   end
> Again returns: MethodError: undefined method `reload!' for
> #<WordsControllerTest:0x2858368>

remove reload!


     assert_equal :published, words(:one).status
     delete :destroy, :id => words(:one).to_param
     word_status = Word.find(:id).status
     assert_equal :deleted, word_status


nilk_cse
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to