On Apr 24, 8:48 pm, IAmNan <[email protected]> wrote:
> Can someone explain why a instance variable cannot be changed through an
> association under rspec/factory_girl? An example is in this 
> gist<https://gist.github.com/2484336>
> .
>

When you use .first and if the association is not already loaded then
the object is refetched from the db each time, so the unsaved change
you've made to the object is lost.

Fred

> All tests pass except the last. All the steps pass in the console.

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