Re: [rspec-users] Dealing with dependent data

2008-06-27 Thread Jim Gay
http://www.lindsaar.net/2008/6/24/tip-24-being-clever-in-specs-is-for-dummies That post is fantastic. Thanks! Couldn't agree more with that post... For instance, restful_authentication now comes with specs, but, ehrm... See for yourself: http://pastie.org/222670 haha. I have no idea wha

Re: [rspec-users] Dealing with dependent data

2008-06-27 Thread Ben Mabey
Scott Taylor wrote: On Jun 26, 2008, at 11:25 AM, Bart Zonneveld wrote: On 26-jun-2008, at 15:48, David Chelimsky wrote: On Jun 25, 2008, at 9:38 PM, Mikel Lindsaar wrote: http://www.lindsaar.net/2008/6/24/tip-24-being-clever-in-specs-is-for-dummies That post is fantastic. Thanks! Cou

Re: [rspec-users] Dealing with dependent data

2008-06-26 Thread Scott Taylor
On Jun 26, 2008, at 11:25 AM, Bart Zonneveld wrote: On 26-jun-2008, at 15:48, David Chelimsky wrote: On Jun 25, 2008, at 9:38 PM, Mikel Lindsaar wrote: http://www.lindsaar.net/2008/6/24/tip-24-being-clever-in-specs-is-for-dummies That post is fantastic. Thanks! Couldn't agree more with

Re: [rspec-users] Dealing with dependent data

2008-06-26 Thread Mikel Lindsaar
On Fri, Jun 27, 2008 at 1:25 AM, Bart Zonneveld <[EMAIL PROTECTED]> wrote: > On 26-jun-2008, at 15:48, David Chelimsky wrote: >> On Jun 25, 2008, at 9:38 PM, Mikel Lindsaar wrote: >>> http://www.lindsaar.net/2008/6/24/tip-24-being-clever-in-specs-is-for-dummies >> That post is fantastic. Thanks! >

Re: [rspec-users] Dealing with dependent data

2008-06-26 Thread Bart Zonneveld
On 26-jun-2008, at 15:48, David Chelimsky wrote: On Jun 25, 2008, at 9:38 PM, Mikel Lindsaar wrote: http://www.lindsaar.net/2008/6/24/tip-24-being-clever-in-specs-is- for-dummies That post is fantastic. Thanks! Couldn't agree more with that post... For instance, restful_authentication no

Re: [rspec-users] Dealing with dependent data

2008-06-26 Thread David Chelimsky
On Jun 25, 2008, at 9:38 PM, Mikel Lindsaar wrote: http://www.lindsaar.net/2008/6/24/tip-24-being-clever-in-specs-is-for-dummies That post is fantastic. Thanks! ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listin

Re: [rspec-users] Dealing with dependent data

2008-06-25 Thread Christopher Bailey
I agree in general on fixtures, depending on how you define "fixtures". I never use the standard Rails fixtures, or any YAML based fixture data. I always generate my data from a factory or real ActiveRecord call to create the object. But, I still consider this essentially "fixture" data, it's ju

Re: [rspec-users] Dealing with dependent data

2008-06-25 Thread Mikel Lindsaar
On Thu, Jun 26, 2008 at 12:18 PM, Christopher Bailey <[EMAIL PROTECTED]> wrote: > The other thing I'm finding a lot is that I have a lot of the same > needs for this fixture type data between my regular RSpec examples > (model tests mostly, as I'm going light on controller and view tests > and most

Re: [rspec-users] Dealing with dependent data

2008-06-25 Thread Christopher Bailey
In reply to both of the last two replies to my post... I am already doing the factory stuff for data creation. My question is more about dependencies between fixture data sets. So, you have 3 related models: A, B, C. Model A can stand on its own. Model B can't exist without an A, and C can't e

Re: [rspec-users] Dealing with dependent data

2008-06-25 Thread Scott Taylor
On Jun 25, 2008, at 9:38 PM, Mikel Lindsaar wrote: On Thu, Jun 26, 2008 at 4:37 AM, Christopher Bailey <[EMAIL PROTECTED]> wrote: If there's already been a thread on this, let me know (and if you can, point me to it)... I asked something similar about a week or so ago, you can see it here:

Re: [rspec-users] Dealing with dependent data

2008-06-25 Thread Mikel Lindsaar
On Thu, Jun 26, 2008 at 4:37 AM, Christopher Bailey <[EMAIL PROTECTED]> wrote: > If there's already been a thread on this, let me know (and if you can, > point me to it)... I asked something similar about a week or so ago, you can see it here: http://www.ruby-forum.com/topic/156392 It is on 'reu

[rspec-users] Dealing with dependent data

2008-06-25 Thread Christopher Bailey
If there's already been a thread on this, let me know (and if you can, point me to it)... In building my stories, I often need to setup a bunch of data where you have multiple levels of models that depend on each other. For example, I'd have models like Doctor, Organization, and Location. To run