Re: [Rails] Running Ruby/Rails Specs with database inserts from non-default spec sub-directory

2011-05-11 Thread David Kahn
On Wed, May 11, 2011 at 1:54 PM, egervari wrote: > Hi everyone! > > I have a question on how to setup my tests a bit differently than the > defaults. > > By default, Rails with RSpec installed provides you with directories > such as spec/models, spec/controllers, etc. > > When i use before(:each)

[Rails] Running Ruby/Rails Specs with database inserts from non-default spec sub-directory

2011-05-11 Thread egervari
Hi everyone! I have a question on how to setup my tests a bit differently than the defaults. By default, Rails with RSpec installed provides you with directories such as spec/models, spec/controllers, etc. When i use before(:each), I notice that Rails properly cleans out the database in these sp