Hi,

I something like:

def test_something
  @object = Object.create(...)
  @object.update_attribute(...)
  assert_equal "changed", @object.attribute
end

The problem is that in the assertion, @object still holds the old
values. Isn't there a reload! method to reload the @object values?
-- 
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