David Kahn wrote in post #967449:
> I am getting this error on an rspec test:
> undefined method `loaded?' for #<Array:0x126a4c>
>
> When I call:
> Practice.includes("practice_members").all
>

You aren't testing what you think you are...

.all returns an array even if it only finds a single instance, and at 
last check, the Array class does not have a loaded? method.

Should your test be using some other method, perhaps empty?

-- 
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 rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to