> ActiveRecord objects aren't hashes - if you pass an argument to > Business.new it's expecting a hash of attribute values. > > Fred
Thanks for the information. I've decided (at least for the time being) to keep my tests painfully expressive and slightly less DRY than other code. It can be hard to look as setting a list of attributes to 0 or an empty string but it works. Bill -- 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 -~----------~----~----~----~------~----~------~--~---

