title: How do I test for belongs_to and has_many in Rails?
body: <p>I'm using rspec and I'm trying to test whether or not my model y has many x. I've tried all sorts of things, including looping through the methods array, and can't seem to find a good method online. So what should I use?</p>