def test_should_delete_word
assert_equal 'published', words(:one).status
debugger
delete :destroy, :id => words(:one).to_param
Word.reload
word_status=Word.find(:id).status
assert_equal 'deleted', word_status
end
--
nik
--
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
-~----------~----~----~----~------~----~------~--~---
- [Rails] Function Testing Reloading Fixtures before ass... brianp
- [Rails] Re: Function Testing Reloading Fixtures b... Frederick Cheung
- [Rails] Re: Function Testing Reloading Fixtur... Marnen Laibow-Koser
- [Rails] Re: Function Testing Reloading Fi... Frederick Cheung
- [Rails] Re: Function Testing Reloading Fixtures b... Nik Cool
- [Rails] Re: Function Testing Reloading Fixtures b... Nik Cool
- [Rails] Re: Function Testing Reloading Fixtur... brianp
- [Rails] Re: Function Testing Reloading Fi... Nik Cool
- [Rails] Re: Function Testing Reloading Fi... Frederick Cheung
- [Rails] Re: Function Testing Reloadin... brianp
- [Rails] Re: Function Testing Rel... Frederick Cheung
- [Rails] Re: Function Testing Rel... Nilesh Kulkarni
- [Rails] Re: Function Testing... brianp
- [Rails] Re: Function Tes... Nilesh Kulkarni

