Hi,

I have a question about testing ...

It's controller test ...

First I do something like this:

xhr :get, :status, :id => homeworks(:one).id, :status => "done"

The :status action sets homework's length_done to length.

So I do this:

assert = homeworks(:one).length == homeworks(:one).length_done

But this test doesn't pass, while this one:

assert assigns(:homework).length == assigns(:homework).length_done

Passes. Why?

If I do request - doesn't the object from fixtures get updated?
--~--~---------~--~----~------------~-------~--~----~
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