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
> 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
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
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