[rspec-users] Global before blocks - filtering by multiple types

2010-12-03 Thread Andi Schacke
Hi in the config block of rspec I have a before block to reset my database before each spec: config.before(:each) {DatabaseCleaner.clean} I know I can apply this before to a specific type, e.g. config.before(:each, :type => :model) {DatabaseCleaner.clean} but what I want to achieve is that the

[rspec-users] [rspec, rails] Restful Routes in controller specs

2009-03-11 Thread Andi Schacke
Hi, how is it possible that I can use the restful routes helpers (e.g. new_user_path) in controller specs? I browsed the source code but I couldn't find the magic. I'm just curious and would appreciate any hint... thanks Andi ___ rspec-users mailing lis

Re: [rspec-users] [rspec, rails] Restful Routes in controller specs

2009-03-11 Thread Andi Schacke
Thanks a lot David, my question was 'how' they are for free. That explains why I didn't find it in the rspec-rails sourcecode. Cheers Andi On Mar 11, 2:39 pm, David Chelimsky wrote: > On Wed, Mar 11, 2009 at 3:30 AM, Andi Schacke > > wrote: > > Hi, > > >