Re: [rspec-users] Keeping unit tests from hitting the DB

2007-08-24 Thread Pat Maddox
On 8/24/07, Jim Deville <[EMAIL PROTECTED]> wrote: > > On Aug 23, 2007, at 9:48 PM, Pat Maddox wrote: > > > On 8/23/07, Jim Deville <[EMAIL PROTECTED]> wrote: > >> > >>> As far as model specs go...I've been toying with the idea of > >>> splitting > >>> up non-db-reliant behavior specs from the

Re: [rspec-users] Keeping unit tests from hitting the DB

2007-08-24 Thread David Chelimsky
On 8/24/07, Jim Deville <[EMAIL PROTECTED]> wrote: > > On Aug 23, 2007, at 9:48 PM, Pat Maddox wrote: > > > On 8/23/07, Jim Deville <[EMAIL PROTECTED]> wrote: > >> > >>> As far as model specs go...I've been toying with the idea of > >>> splitting > >>> up non-db-reliant behavior specs from the

Re: [rspec-users] Keeping unit tests from hitting the DB

2007-08-24 Thread Jim Deville
On Aug 23, 2007, at 9:48 PM, Pat Maddox wrote: > On 8/23/07, Jim Deville <[EMAIL PROTECTED]> wrote: >> >>> As far as model specs go...I've been toying with the idea of >>> splitting >>> up non-db-reliant behavior specs from the specs that do require the >>> database. When you want to speci

Re: [rspec-users] Keeping unit tests from hitting the DB

2007-08-23 Thread Pat Maddox
On 8/23/07, Jim Deville <[EMAIL PROTECTED]> wrote: > > > As far as model specs go...I've been toying with the idea of splitting > > up non-db-reliant behavior specs from the specs that do require the > > database. When you want to specify behavior you can just stub out the > > columns (becaus

Re: [rspec-users] Keeping unit tests from hitting the DB

2007-08-23 Thread Jim Deville
> As far as model specs go...I've been toying with the idea of splitting > up non-db-reliant behavior specs from the specs that do require the > database. When you want to specify behavior you can just stub out the > columns (because AR does try to hit the db to find the column info). > Obvio

Re: [rspec-users] Keeping unit tests from hitting the DB

2007-08-23 Thread Pat Maddox
On 8/23/07, Ben Mabey <[EMAIL PROTECTED]> wrote: > David Chelimsky wrote: > > On 8/23/07, Ben Mabey <[EMAIL PROTECTED]> wrote: > > > >> Hey all, > >> I think I saw a thread about this earlier (maybe it was on the devlopers > >> list) but I am wondering if anyone has stubbed out AR so that the unit

Re: [rspec-users] Keeping unit tests from hitting the DB

2007-08-23 Thread Ben Mabey
David Chelimsky wrote: > On 8/23/07, Ben Mabey <[EMAIL PROTECTED]> wrote: > >> Hey all, >> I think I saw a thread about this earlier (maybe it was on the devlopers >> list) but I am wondering if anyone has stubbed out AR so that the unit >> test do not hit the database. The reason I am curious

Re: [rspec-users] Keeping unit tests from hitting the DB

2007-08-23 Thread David Chelimsky
On 8/23/07, Ben Mabey <[EMAIL PROTECTED]> wrote: > Hey all, > I think I saw a thread about this earlier (maybe it was on the devlopers > list) but I am wondering if anyone has stubbed out AR so that the unit > test do not hit the database. The reason I am curious is because there > was a lightning

[rspec-users] Keeping unit tests from hitting the DB

2007-08-23 Thread Ben Mabey
Hey all, I think I saw a thread about this earlier (maybe it was on the devlopers list) but I am wondering if anyone has stubbed out AR so that the unit test do not hit the database. The reason I am curious is because there was a lightning talk given at the Ruby Hoedown (watch it here: http://