> Here is the test:
>   def test_should_delete_word
>     assert_equal 'published', words(:one).status
>     debugger
>     delete :destroy, :id => words(:one).to_param
>    
>     assert_equal 'deleted', words(:one).status
>   end
> 
> It fails on the last with: <"deleted"> expected but was <"published">.
> 


if i understand correctly
your problem here is you are checking values from fixture instead of 
database
like this
assert_equal 'deleted', words(:one).status

instead you must check your status from database

assert_equal 'deleted', check value from database not from fixture

-- 
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