search for: naybody

Displaying 1 result from an estimated 1 matches for "naybody".

Did you mean: anybody
2008 May 07
0
Rspec and validates_existence_of
...tance of User in the console and set the department to be one that does not exist in the db, then a call to valid? returns false. However, if I create a rspec test block, that does something similar, then valid? returns true. It is almost as if rspec is ignoring the validates_existence_of. Does naybody have any ideas how to fix this? Thanks in advance Rory --~--~---------~--~----~------------~-------~--~----~ 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-talk-/JYPxA39Uh5TLH3MbocF...