Re: [rspec-users] Spec the Application Controller application.rb

2008-04-23 Thread Andy Croll
This bit however, replaces your other routes, so you cannot use them in your tests > before(:each) do > ActionController::Routing::Routes.draw do |map| > map.resources :foo > end > end Is there a sensible way to append to the routes.rb that I'm missing? Andy -- Posted via htt

Re: [rspec-users] how do i remove duplication from my steps in story runner?

2008-04-23 Thread Perryn Fowler
> You should be able to make your own module of helpers and include it into > Spec::Story::World > > module Spec::Story::World > def your_helper_method > # i should have access to everything I need > end >end brilliant, worked like a charm thanks :) If you will indulge a ruby newb questi

Re: [rspec-users] Spec the Application Controller application.rb

2008-04-23 Thread Andy Croll
Pat Maddox wrote: > You can still use the technique that I showed, you would just call > before_filter in the fake controller. That would allow you to specify > and implement the filter in isolation. Aha! Success, although I needed to add in a little Route fixing to make it work. application_s

Re: [rspec-users] how do i remove duplication from my steps in story runner?

2008-04-23 Thread Zach Dennis
You should be able to make your own module of helpers and include it into Spec::Story::World module Spec::Story::World def your_helper_method # i should have access to everything I need end end Zach On Tue, Apr 22, 2008 at 10:30 PM, Perryn Fowler <[EMAIL PROTECTED]> wrote: > > Another