On 10/19/07, Ben Mabey <[EMAIL PROTECTED]> wrote: > I would think that something like this should be worked into > rpsec_on_rails. Because it makes testing AR behavior very easy and > painless. One line of code = One line of test code.
I'd be hesitant to include it in rspec_on_rails. I don't really see this as testing AR *behaviour* at all. It's pure structure. To me this is no different than specifying that a Group should have an Array of Users. And the reason we don't want to specify that is that if we decide to change the Array to a Hash internally, without affecting Group's methods, then we'd have to change the specs. But I'd encourage you to publish this as a gem or plugin. I'm sure a lot of people would like to use it, in spite of my opinions. Cheers, David _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users