puts, awesome print, pry, ruby-debug are all great tools you might try 
before bringing this up on the list:

Try:
@user.errors each do |e|
  puts @post
  puts @post.errors
  puts @post.errors.class
  @post.errors << e
 end unless @user.valid?

then run your test again.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/BU2OGbogZHYJ.
To post to this group, send email to rubyonrails-talk@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